Closed cemo closed 10 years ago
@cemo thank you for your comments and questions.
document
instead of $el
because in there are cases where certain handlers will replace or remove the node represented by $el
and then you lose the handle for that event to be caught. By passing it as an argument you can still get out what it used to be and filter things in your eldarion-ajax:complete
handler by inspecting properties of the $el
argument using things like hasClass
. I welcome a better implementation but this what I was able to come up with and it works so I stopped working on it. :)trigger
will bubble up the event while triggerHandler
does not. Do you need the event to bubble?Thanks, Patrick
Hi @paltman,
I have some issues regarding your implementation and could not find a better place to ask them.
_ajax function
triggers a complete event overdocument object
instead of$el object
at here. What is the reason about this?_ajax function
is using triggerHandler instead oftrigger
formodify-data
. Why?I am sure you have pretty good reasons for them and I would be glad if you enlighten me.