From: Aleksander Ɓukasz Date: Mon, 24 Jun 2013 10:39:55 +0000 (+0200) Subject: fix: breaking from loop properly X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/52f3927cfc1af1e9eaa469b73a33c9575ef710d8?ds=sidebyside fix: breaking from loop properly --- diff --git a/modules/documentCanvas/canvas.js b/modules/documentCanvas/canvas.js index 848dc48..5de60f4 100644 --- a/modules/documentCanvas/canvas.js +++ b/modules/documentCanvas/canvas.js @@ -151,7 +151,7 @@ Canvas.prototype.createList = function(options) { nodesToWrap.push($node); } if(node.isSameNode(element2.get(0))) - return; + return false; }); var list = this._createNode('div', 'list-items');