mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-30 06:27:57 -05:00
$.widget: Create namespace if it doesn't already exist.
This commit is contained in:
@@ -175,6 +175,7 @@ $.widget = function(name, prototype) {
|
||||
};
|
||||
|
||||
// create widget constructor
|
||||
$[namespace] = $[namespace] || {};
|
||||
$[namespace][name] = function(element, options) {
|
||||
var self = this;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user