Update OOjs UI to v0.1.0-pre (7d3223b8f4)
authorJames D. Forrester <jforrester@wikimedia.org>
Fri, 14 Feb 2014 02:43:07 +0000 (18:43 -0800)
committerJames D. Forrester <jforrester@wikimedia.org>
Fri, 14 Feb 2014 02:43:07 +0000 (18:43 -0800)
6c3e183 Add icons demo
f285a06 build: Concatenation task should not include 'default' in a variant
7d3223b Fix for clearing items in a group element

Change-Id: I8f1b59806b25f5d6a1431e77d654259385245b91

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

index 07bb2a8..7412270 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (7788dc6700)
+ * OOjs UI v0.1.0-pre (7d3223b8f4)
  * 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: Thu Feb 13 2014 13:56:07 GMT-0800 (PST)
+ * Date: Thu Feb 13 2014 18:36:08 GMT-0800 (PST)
  */
 ( function () {
 
@@ -2163,12 +2163,13 @@ OO.ui.GroupElement.prototype.clearItems = function () {
        var i, len, item;
 
        // Remove all items
-       if ( this.aggregate ) {
-               for ( i = 0, len = this.items.length; i < len; i++ ) {
+       for ( i = 0, len = this.items.length; i < len; i++ ) {
+               item = this.items[i];
+               if ( this.aggregate ) {
                        item.disconnect( this );
                }
+               item.setElementGroup( null );
        }
-       item.setElementGroup( null );
        this.items = [];
        this.$items.detach();
        this.$items = this.$( [] );
index be512dd..24c6a1a 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre-svg (7788dc6700)
+ * OOjs UI v0.1.0-pre-svg (7d3223b8f4)
  * 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: Thu Feb 13 2014 13:56:07 GMT-0800 (PST)
+ * Date: Thu Feb 13 2014 18:36:08 GMT-0800 (PST)
  */
 /*csslint vendor-prefix:false */