Bones/javascripts/tabs.js

40 lines
913 B
JavaScript
Raw Normal View History

2011-08-17 21:37:35 -04:00
/*
* Skeleton V1.1
2011-08-17 21:37:35 -04:00
* Copyright 2011, Dave Gamache
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 8/17/2011
2011-08-17 21:37:35 -04:00
*/
2011-11-22 15:51:31 -05:00
;(function ( $, window, document, undefined ) {
var pluginName = 'skeletonTabs',
defaults = {
propertyName: "value"
};
function Plugin( element, options ) {
this.element = element;
this.options = $.extend( {}, defaults, options) ;
this._defaults = defaults;
this._name = pluginName;
this.init();
}
Plugin.prototype.init = function () {
};
$.fn[pluginName] = function ( options ) {
return this.each(function () {
if (!$.data(this, 'plugin_' + pluginName)) {
$.data(this, 'plugin_' + pluginName, new Plugin( this, options ));
}
});
}
})(jQuery, window, document);