Skip to content

Instantly share code, notes, and snippets.

@notmasteryet
Created February 3, 2012 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notmasteryet/1727144 to your computer and use it in GitHub Desktop.
Save notmasteryet/1727144 to your computer and use it in GitHub Desktop.
ie9 predictor hack
diff --git a/src/stream.js b/src/stream.js
index fc16317..882e3f7 100644
--- a/src/stream.js
+++ b/src/stream.js
@@ -754,6 +754,10 @@ var PredictorStream = (function PredictorStreamClosure() {
default:
error('Unsupported predictor: ' + predictor);
}
+
+ // hack for TypedArray-less browsers
+ buffer.set(currentRow, bufferLength);
+
this.bufferLength += rowBytes;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment