Skip to content
raid-ox edited this page Sep 13, 2010 · 3 revisions
It is a custom event, triggered when chain is updating.

Syntax

$(element).update()

Routines

This method will execute different routines depending on the arguments passed.

update()

If no argument is passed, it will update the element and trigger the update event.

$('#element').update();

update(function)

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(){...});

Clone this wiki locally