Called if an controller's jQuery helper is called on an element that already has a controller instance of the same type. Extends this.options with the options passed in. If you overwrite this, you might want to call this._super.
$.Controller.extend("Thing",{ init: function( el, options ) { alert('init') }, update: function( options ) { this._super(options); alert('update') } }); $('#myel').thing(); // alerts init $('#myel').thing(); // alerts update
controller.update(options) -> undefined
{Object}
{undefined}
Called if an controller's jQuery helper is called on an element that already has a controller instance of the same type. Extends this.options with the options passed in. If you overwrite this, you might want to call this._super.
Examples