aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js6
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;
}