www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 47a062c9a84e083bb247bce0c82c817793dcb33f
parent 42c55ee5f3afd1cbf6d14e361bc415e8a74f2a87
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 17 Feb 2015 01:39:40 -0500

Fix potential infinite loop dragging large HTML notes

Diffstat:
Mchrome/content/zotero/xpcom/quickCopy.js | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/quickCopy.js b/chrome/content/zotero/xpcom/quickCopy.js @@ -264,11 +264,10 @@ Zotero.QuickCopy = new function() { for(var i=0; i<ps.length; i++) { var p = ps[i], paddingLeft = p.style.paddingLeft; - Zotero.debug("PADDING LEFT "+paddingLeft); if(paddingLeft && paddingLeft.substr(paddingLeft.length-2) === "px") { var paddingPx = parseInt(paddingLeft, 10), ztabs = ""; - for(var i=30; i<=paddingPx; i+=30) ztabs += ZTAB; + for (let j = 30; j <= paddingPx; j += 30) ztabs += ZTAB; p.insertBefore(textDoc.createTextNode(ztabs), p.firstChild); } }