mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-18 22:26:32 +01:00
Accept const char* to initMutationEvent
This commit is contained in:
parent
fae0ecf960
commit
48287b4adc
1 changed files with 117 additions and 116 deletions
|
@ -60,7 +60,7 @@ class MutationEvent : public Event<stringT, string_adaptorT>
|
|||
|
||||
AttrChange getAttrChange() const { return mImpl()->getAttrChange(); }
|
||||
|
||||
void initMutationEvent(const stringT& typeArg,
|
||||
void initMutationEvent(const char* typeArg,
|
||||
bool canBubble,
|
||||
bool canCancel,
|
||||
DOM::Node<stringT> relatedNode,
|
||||
|
@ -69,7 +69,8 @@ class MutationEvent : public Event<stringT, string_adaptorT>
|
|||
const stringT& attrNameArg,
|
||||
AttrChange attrChangeArg)
|
||||
{
|
||||
mImpl()->initMutationEvent(typeArg, canBubble, canCancel, relatedNode,
|
||||
mImpl()->initMutationEvent(string_adaptorT::convert_from_utf8(typeArg),
|
||||
canBubble, canCancel, relatedNode,
|
||||
prevValueArg, nextValueArg, attrNameArg, attrChangeArg);
|
||||
} // initMutationEvent
|
||||
|
||||
|
|
Loading…
Reference in a new issue