Skip to content

Instantly share code, notes, and snippets.

@houhr
Created August 1, 2013 11:30
Show Gist options
  • Save houhr/6130529 to your computer and use it in GitHub Desktop.
Save houhr/6130529 to your computer and use it in GitHub Desktop.
define: function(name, data, superClass) {
if(superClass) data.inherit = superClass;
var Class = $.ui[name] = _createClass(function(el, options) {
var obj = _createObject(Class.prototype, {
_id: $.parseTpl(tpl, {
name: name,
id: _guid()
})
});
obj._createWidget.call(obj, el, options,Class.plugins);
return obj;
}, data);
return _zeptoLize(name, Class);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment