mirror of
https://github.com/jezhiggins/arabica
synced 2025-02-06 20:46:18 +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(); }
|
AttrChange getAttrChange() const { return mImpl()->getAttrChange(); }
|
||||||
|
|
||||||
void initMutationEvent(const stringT& typeArg,
|
void initMutationEvent(const char* typeArg,
|
||||||
bool canBubble,
|
bool canBubble,
|
||||||
bool canCancel,
|
bool canCancel,
|
||||||
DOM::Node<stringT> relatedNode,
|
DOM::Node<stringT> relatedNode,
|
||||||
|
@ -69,7 +69,8 @@ class MutationEvent : public Event<stringT, string_adaptorT>
|
||||||
const stringT& attrNameArg,
|
const stringT& attrNameArg,
|
||||||
AttrChange attrChangeArg)
|
AttrChange attrChangeArg)
|
||||||
{
|
{
|
||||||
mImpl()->initMutationEvent(typeArg, canBubble, canCancel, relatedNode,
|
mImpl()->initMutationEvent(string_adaptorT::convert_from_utf8(typeArg),
|
||||||
|
canBubble, canCancel, relatedNode,
|
||||||
prevValueArg, nextValueArg, attrNameArg, attrChangeArg);
|
prevValueArg, nextValueArg, attrNameArg, attrChangeArg);
|
||||||
} // initMutationEvent
|
} // initMutationEvent
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue