Browse Source

I'm pretty sure comparing a string to a number was not my original intent (closes #44)

pull/51/head
Matthew Holt 11 years ago
parent
commit
0c21e24ef6
  1. 2
      jquery.parse.js

2
jquery.parse.js

@ -150,7 +150,7 @@ @@ -150,7 +150,7 @@
// If we're maxing out the chunk size, we probably cut a line
// in half. However: doing these operations if the whole file
// fits in one chunk will leave off the last line, which is bad.
if (text >= settings.chunkSize)
if (text.length >= settings.chunkSize)
{
var lastLineEnd = text.lastIndexOf("\n");

Loading…
Cancel
Save