jQuery Plugin Stub
(function($) {
var settings;
var methods = {
init: function(options){
// Create some defaults, extending them with any options that were provided
settings = $.extend({
}, options);
return this
},
};
$.fn.mediaTextfield = function(method){
if(methods[method]){
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
}
else if(typeof method === 'object' || !method){
return methods.init.apply(this, arguments);
}
else{
$.error('Method ' + method + ' does not exist.');
}
};
})(jQuery);
jquery-plugin-stub.js hosted by GitHub