jquery-src/jquery.plugin.js
function(elem, options) {
			elem = $(elem);
			if (elem.hasClass(this._getMarker())) {
				return;
			}
			elem.addClass(this._getMarker());
			options = $.extend({}, this.defaultOptions, this._getMetadata(elem), options || {});
			var inst = $.extend({name: this.name, elem: elem, options: options},
				this._instSettings(elem, options));
			elem.data(this.name, inst); // Save instance against element
			this._postAttach(elem, inst);
			this.option(elem, options);
		}
function(elem, options) {
			elem = $(elem);
			if (elem.hasClass(this._getMarker())) {
				return;
			}
			elem.addClass(this._getMarker());
			options = $.extend({}, this.defaultOptions, this._getMetadata(elem), options || {});
			var inst = $.extend({name: this.name, elem: elem, options: options},
				this._instSettings(elem, options));
			elem.data(this.name, inst); // Save instance against element
			this._postAttach(elem, inst);
			this.option(elem, options);
		}
function ( elem , options ) { elem = $ ( elem ) ; if ( elem . hasClass ( this . _getMarker ( ) ) ) { return ; } elem . addClass ( this . _getMarker ( ) ) ; options = $ . extend ( { } , this . defaultOptions , this . _getMetadata ( elem ) , options || { } ) ; var inst = $ . extend ( { name : this . name , elem : elem , options : options } , this . _instSettings ( elem , options ) ) ; elem . data ( this . name , inst ) ; // Save instance against element this . _postAttach ( elem , inst ) ; this . option ( elem , options ) ; }
Initialise an element. Called internally only.
Adds an instance object as data named for the plugin.
@param elem {Element} The element to enhance.
@param options {object} Overriding settings.
Initialise an element . Called internally only . Adds an instance object as data named for the plugin .