From 52f3927cfc1af1e9eaa469b73a33c9575ef710d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 24 Jun 2013 12:39:55 +0200 Subject: [PATCH 1/1] fix: breaking from loop properly --- modules/documentCanvas/canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.20.1