aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.core.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2008-09-28 17:58:08 +0000
committerScott González <scott.gonzalez@gmail.com>2008-09-28 17:58:08 +0000
commit46cdf1377c752b555b7d0d0c7d33dff087aadd3b (patch)
tree85d841a1e7faa00a71988ef1f9cdad8089381945 /ui/ui.core.js
parentc1deb3508bf0e54c5afe28d356bf6a6dfce5c372 (diff)
downloadjquery-ui-46cdf1377c752b555b7d0d0c7d33dff087aadd3b.tar.gz
jquery-ui-46cdf1377c752b555b7d0d0c7d33dff087aadd3b.zip
$.widget: Create namespace if it doesn't already exist.
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r--ui/ui.core.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js
index 6450f1752..aea6e0ec8 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -175,6 +175,7 @@ $.widget = function(name, prototype) {
};
// create widget constructor
+ $[namespace] = $[namespace] || {};
$[namespace][name] = function(element, options) {
var self = this;