* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI
- *
*/
;(function($) {
this.widgetName = name;
this.widgetBaseClass = namespace + '-' + name;
- this.options = $.extend({ disabled: false }, $[namespace][name].defaults, options);
+ this.options = $.extend({}, $.widget.defaults, $[namespace][name].defaults, options);
this.element = $(element)
.bind('setData.' + name, function(e, key, value) {
return self.setData(key, value);
}
};
+$.widget.defaults = {
+ disabled: false
+};
+
/** Mouse Interaction Plugin **/
if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) {
this._mouseStarted = (this.mouseStart(e) !== false);
- if (!this._mouseStarted) { e.preventDefault(); return true; }
+ if (!this._mouseStarted) {
+ e.preventDefault();
+ return true;
+ }
}
// these delegates are required to keep context