$.widget: Create namespace if it doesn't already exist.

This commit is contained in:
Scott González 2008-09-28 17:58:08 +00:00
parent c1deb3508b
commit 46cdf1377c

View File

@ -175,6 +175,7 @@ $.widget = function(name, prototype) {
};
// create widget constructor
$[namespace] = $[namespace] || {};
$[namespace][name] = function(element, options) {
var self = this;