mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
dropping intial code for #4957 - too many open issues to get this into 1.8
This commit is contained in:
26
ui/jquery.ui.core.js
vendored
26
ui/jquery.ui.core.js
vendored
@@ -98,26 +98,6 @@ $.ui = {
|
||||
SPACE: 32,
|
||||
TAB: 9,
|
||||
UP: 38
|
||||
},
|
||||
|
||||
element: function(value, context) {
|
||||
var ret = $([]); // $(context) ?
|
||||
|
||||
if (value.jquery) {
|
||||
ret = value;
|
||||
} else if (value == 'parent') {
|
||||
ret = $(context).parent();
|
||||
} else if (value == 'clone') {
|
||||
ret = $(context).clone().removeAttr('id');
|
||||
} else if (value == 'window') {
|
||||
ret = $(context).window(); // requires .window() plugin
|
||||
} else if (value.nodeType || typeof value == 'string' || $.isArray(value)) {
|
||||
ret = $(value, context);
|
||||
} else if ($.isFunction(value)) {
|
||||
ret = value(context);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -214,12 +194,6 @@ $.fn.extend({
|
||||
}
|
||||
|
||||
return 0;
|
||||
},
|
||||
|
||||
window: function() {
|
||||
return this.pushStack($.unique($.map(this, function() {
|
||||
return this.ownerDocument.defaultView;
|
||||
})));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user