Update OOjs UI to v0.1.0-pre (70932872ba)
authorJames D. Forrester <jforrester@wikimedia.org>
Tue, 8 Apr 2014 19:42:35 +0000 (12:42 -0700)
committerKrinkle <krinklemail@gmail.com>
Tue, 8 Apr 2014 22:43:04 +0000 (22:43 +0000)
New changes:
7093287 Don't assume selection is of an item, sometimes it's null

Change-Id: I908a8e723060a6e9155532d944e3d098e1468a2f

resources/lib/oojs-ui/oojs-ui.js
resources/lib/oojs-ui/oojs-ui.svg.css

index cf838b9..7807734 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (4975b8db90)
+ * OOjs UI v0.1.0-pre (70932872ba)
  * 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: Mon Apr 07 2014 15:17:10 GMT-0700 (PDT)
+ * Date: Tue Apr 08 2014 12:42:30 GMT-0700 (PDT)
  */
 ( function ( OO ) {
 
@@ -6848,7 +6848,13 @@ OO.ui.InlineMenuWidget.prototype.getMenu = function () {
  * @param {OO.ui.MenuItemWidget} item Selected menu item
  */
 OO.ui.InlineMenuWidget.prototype.onMenuSelect = function ( item ) {
-       var selectedLabel = item.getLabel();
+       var selectedLabel;
+
+       if ( !item ) {
+               return;
+       }
+
+       selectedLabel = item.getLabel();
 
        // If the label is a DOM element, clone it, because setLabel will append() it
        if ( selectedLabel instanceof jQuery ) {
index 873fd19..bd5f527 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (4975b8db90)
+ * OOjs UI v0.1.0-pre (70932872ba)
  * 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: Mon Apr 07 2014 15:17:10 GMT-0700 (PDT)
+ * Date: Tue Apr 08 2014 12:42:30 GMT-0700 (PDT)
  */
 
 /* Textures */