mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
$.widget: Create namespace if it doesn't already exist.
This commit is contained in:
parent
c1deb3508b
commit
46cdf1377c
@ -175,6 +175,7 @@ $.widget = function(name, prototype) {
|
||||
};
|
||||
|
||||
// create widget constructor
|
||||
$[namespace] = $[namespace] || {};
|
||||
$[namespace][name] = function(element, options) {
|
||||
var self = this;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user