Roo/bootstrap/MasonryBrick.js
authorjohn <john@roojs.com>
Thu, 21 Dec 2017 02:50:08 +0000 (10:50 +0800)
committerjohn <john@roojs.com>
Thu, 21 Dec 2017 02:50:08 +0000 (10:50 +0800)
Roo/bootstrap/MasonryBrick.js

index 76ddfc4..a4ac063 100644 (file)
@@ -515,11 +515,18 @@ Roo.apply(Roo.bootstrap.MasonryBrick, {
     * @returns {Roo.bootstrap.MasonryBrick} the masonry brick
     */
     
-    get: function(brick_id) {
-        if (typeof(this.groups[brick_id]) == 'undefined') {
-            return false;
+    get: function(brick_id) 
+    {
+        // if (typeof(this.groups[brick_id]) == 'undefined') {
+        //     return false;
+        // }
+        // return this.groups[brick_id] ;
+        
+        if(this.groups.key(brick_id)) {
+            return this.groups.key(brick_id);
         }
-        return this.groups[brick_id] ;
+        
+        return false;
     }