diff options
author | John Allwine <jallwine86@gmail.com> | 2013-05-09 09:37:49 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-09 11:57:50 -0700 |
commit | 953484e4cf3e93fc3bf5fdb4e6e7a438299162cc (patch) | |
tree | 4cf164b25bdad35746f17fab02adc35e8617df33 /src | |
parent | 4f29a5fee48224696cf4e26712417bac715507c6 (diff) |
changed getLength to cacheLength
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library.js b/src/library.js index f22eaecf..6bfb49ef 100644 --- a/src/library.js +++ b/src/library.js @@ -312,7 +312,7 @@ LibraryManager.library = { this.getter = getter; } - LazyUint8Array.prototype.getLength = function() { + LazyUint8Array.prototype.cacheLength = function() { // Find length var xhr = new XMLHttpRequest(); xhr.open('HEAD', url, false); @@ -373,7 +373,7 @@ LibraryManager.library = { Object.defineProperty(lazyArray, "length", { get: function() { if(!this.lengthKnown) { - this.getLength(); + this.cacheLength(); } return this._length; } @@ -381,7 +381,7 @@ LibraryManager.library = { Object.defineProperty(lazyArray, "chunkSize", { get: function() { if(!this.lengthKnown) { - this.getLength(); + this.cacheLength(); } return this._chunkSize; } |