-
Notifications
You must be signed in to change notification settings - Fork 4
Element::update
raid-ox edited this page Sep 13, 2010
·
3 revisions
It is a custom event, triggered when chain is updating.
$(element).update()
This method will execute different routines depending on the arguments passed.
If no argument is passed, it will update the element and trigger the update event.
$('#element').update();
If you pass a function to update, it will bind it to the update event. just like jQuery’s click() or mouseover().
$('#el').update(function(event, data){
// Do something
// If item is defined, data will be item data.
// "this" is the current element. make sure you use "$(this)" inside update
});
// Same as:
$('#el').bind('update', function(){...});