diff --git a/lib/polyfill.coffee b/lib/polyfill.coffee index cba68a122..0ad7c1fe8 100644 --- a/lib/polyfill.coffee +++ b/lib/polyfill.coffee @@ -22,7 +22,7 @@ Polyfill = # DataUrl to Binary code from Aeosynth's 4chan X repo l = data.length ui8a = new Uint8Array l - for i in [0...l] + for i in [0...l] by 1 ui8a[i] = data.charCodeAt i cb new Blob [ui8a], type: 'image/png' visibility: -> diff --git a/src/General/Main.coffee b/src/General/Main.coffee index eee9be9ae..afcdbe910 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -220,7 +220,7 @@ Main = len = nodes.length for callback in klass::callbacks # c.profile callback.name - for i in [0...len] + for i in [0...len] by 1 node = nodes[i] try callback.cb.call node diff --git a/src/General/Post.coffee b/src/General/Post.coffee index 7319235fd..c792efa81 100644 --- a/src/General/Post.coffee +++ b/src/General/Post.coffee @@ -73,7 +73,7 @@ class Post text = [] # XPathResult.ORDERED_NODE_SNAPSHOT_TYPE === 7 nodes = d.evaluate './/br|.//text()', bq, null, 7, null - for i in [0...nodes.snapshotLength] + for i in [0...nodes.snapshotLength] by 1 text.push nodes.snapshotItem(i).data or '\n' @info.comment = text.join('').trim().replace /\s+$/gm, '' diff --git a/src/Miscellaneous/IDColor.coffee b/src/Miscellaneous/IDColor.coffee index e3ae50715..def9ee3c7 100644 --- a/src/Miscellaneous/IDColor.coffee +++ b/src/Miscellaneous/IDColor.coffee @@ -35,6 +35,6 @@ IDColor = hash: (uniqueID) -> msg = 0 - for i in [0...uniqueID.length] + for i in [0...uniqueID.length] by 1 msg = (msg << 5) - msg + uniqueID.charCodeAt i msg