From: Jörn Zaefferer Date: Fri, 22 Jan 2010 13:18:11 +0000 (+0000) Subject: dropping intial code for #4957 - too many open issues to get this into 1.8 X-Git-Tag: 1.8rc1~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cc77201c8e55a4ffc4d4ff5287cfdc14bce7a3e1;p=jquery-ui.git dropping intial code for #4957 - too many open issues to get this into 1.8 --- diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index 4290dc521..28cf9075b 100644 --- a/ui/jquery.ui.core.js +++ b/ui/jquery.ui.core.js @@ -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; - }))); } });