diff options
Diffstat (limited to 'themes/default/js/ui/jquery.ui.core.js')
-rw-r--r-- | themes/default/js/ui/jquery.ui.core.js | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/themes/default/js/ui/jquery.ui.core.js b/themes/default/js/ui/jquery.ui.core.js index 62075435e..6df91628d 100644 --- a/themes/default/js/ui/jquery.ui.core.js +++ b/themes/default/js/ui/jquery.ui.core.js @@ -1,8 +1,8 @@ /*! - * jQuery UI Core 1.10.1 + * jQuery UI Core 1.10.4 * http://jqueryui.com * - * Copyright 2013 jQuery Foundation and other contributors + * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * @@ -13,16 +13,11 @@ var uuid = 0, runiqueId = /^ui-id-\d+$/; -// prevent duplicate loading -// this is only a problem because we proxy existing functions -// and we don't want to double proxy them +// $.ui might exist from components with no dependencies, e.g., $.ui.position $.ui = $.ui || {}; -if ( $.ui.version ) { - return; -} $.extend( $.ui, { - version: "1.10.1", + version: "1.10.4", keyCode: { BACKSPACE: 8, @@ -52,20 +47,21 @@ $.extend( $.ui, { // plugins $.fn.extend({ - _focus: $.fn.focus, - focus: function( delay, fn ) { - return typeof delay === "number" ? - this.each(function() { - var elem = this; - setTimeout(function() { - $( elem ).focus(); - if ( fn ) { - fn.call( elem ); - } - }, delay ); - }) : - this._focus.apply( this, arguments ); - }, + focus: (function( orig ) { + return function( delay, fn ) { + return typeof delay === "number" ? + this.each(function() { + var elem = this; + setTimeout(function() { + $( elem ).focus(); + if ( fn ) { + fn.call( elem ); + } + }, delay ); + }) : + orig.apply( this, arguments ); + }; + })( $.fn.focus ), scrollParent: function() { var scrollParent; @@ -271,7 +267,7 @@ $.fn.extend({ }); $.extend( $.ui, { - // $.ui.plugin is deprecated. Use the proxy pattern instead. + // $.ui.plugin is deprecated. Use $.widget() extensions instead. plugin: { add: function( module, option, set ) { var i, |