Roo/bootstrap/LayoutMasonry.js
authorjohn <john@roojs.com>
Thu, 14 Dec 2017 10:27:50 +0000 (18:27 +0800)
committerjohn <john@roojs.com>
Thu, 14 Dec 2017 10:27:50 +0000 (18:27 +0800)
Roo/bootstrap/LayoutMasonry.js

index 395d58a..24be7fd 100644 (file)
@@ -1289,9 +1289,10 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
     
     getSelected : function()
     {
-        for (var i=0; i<this.bricks.length; i++) {
-            Roo.log(this.bricks[i]);
+        if (!this.selectedBrick) {
+            return false;
         }
+        return this.selectedBrick;
     }
 });