diff options
author | Roan Kattouw <roan.kattouw@gmail.com> | 2014-09-26 15:57:21 -0700 |
---|---|---|
committer | Roan Kattouw <roan.kattouw@gmail.com> | 2014-09-26 15:57:32 -0700 |
commit | 0e7a6d6fa9f426467c228782e8b98ffc2820be80 (patch) | |
tree | 0168a4e0a45b31c391df79b6964cac94c0b2ab3b /resources/lib/oojs-ui/oojs-ui.js | |
parent | 550295de01bb9970427b2e9ea0ccb7bf255ca9ca (diff) | |
download | mediawikicore-0e7a6d6fa9f426467c228782e8b98ffc2820be80.tar.gz mediawikicore-0e7a6d6fa9f426467c228782e8b98ffc2820be80.zip |
Update OOjs UI to v0.1.0-pre (98e770ce46)
New changes:
888f1c6 Fix for endless loop in SelectWidget
28f6b94 PopupWidget: Make $element not be a 0x0 box
Change-Id: Id9c9e79e4a1fb4d3a42f7fec65c1360b3b192bfd
Diffstat (limited to 'resources/lib/oojs-ui/oojs-ui.js')
-rw-r--r-- | resources/lib/oojs-ui/oojs-ui.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/lib/oojs-ui/oojs-ui.js b/resources/lib/oojs-ui/oojs-ui.js index 7dd373512841..dfeae9e0ae97 100644 --- a/resources/lib/oojs-ui/oojs-ui.js +++ b/resources/lib/oojs-ui/oojs-ui.js @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.1.0-pre (880100c45e) + * OOjs UI v0.1.0-pre (98e770ce46) * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2014 OOjs Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2014-09-23T22:28:43Z + * Date: 2014-09-26T22:57:14Z */ ( function ( OO ) { @@ -10685,7 +10685,7 @@ OO.ui.SelectWidget.prototype.getRelativeSelectableItem = function ( item, direct // Default to n-1 instead of -1, if nothing is selected let's start at the end Math.min( index, len ); - while ( true ) { + while ( len !== 0 ) { i = ( i + inc + len ) % len; item = this.items[i]; if ( item instanceof OO.ui.OptionWidget && item.isSelectable() ) { |