fix: breaking from loop properly
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 24 Jun 2013 10:39:55 +0000 (12:39 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 24 Jun 2013 10:39:55 +0000 (12:39 +0200)
modules/documentCanvas/canvas.js

index 848dc48..5de60f4 100644 (file)
@@ -151,7 +151,7 @@ Canvas.prototype.createList = function(options) {
             nodesToWrap.push($node);\r
         }\r
         if(node.isSameNode(element2.get(0)))\r
-            return;\r
+            return false;\r
     });\r
     \r
     var list = this._createNode('div', 'list-items');\r