Comparing version 1.0.9 to 1.0.10
@@ -7,5 +7,6 @@ 'use strict' | ||
const _WeakMap = require('is-firefox') ? Map : WeakMap; | ||
let attributesCache = setAttribute.cache = new WeakMap(); | ||
let attributesIdx = new WeakMap(); | ||
let attributesCache = setAttribute.cache = new _WeakMap(); | ||
let attributesIdx = new _WeakMap(); | ||
@@ -33,3 +34,2 @@ module.exports = setAttribute; | ||
let attributes = attributesCache.has(program) ? attributesCache.get(program) : attributesCache.set(program, {}).get(program); | ||
@@ -36,0 +36,0 @@ |
{ | ||
"name": "gl-util", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Set of practical webgl utils", | ||
@@ -26,5 +26,7 @@ "main": "index.js", | ||
"is-browser": "^2.0.1", | ||
"is-firefox": "^1.0.3", | ||
"is-plain-obj": "^1.1.0", | ||
"number-is-integer": "^1.0.1", | ||
"object-assign": "^4.1.0" | ||
"object-assign": "^4.1.0", | ||
"weakmap-shim": "^1.1.0" | ||
}, | ||
@@ -31,0 +33,0 @@ "devDependencies": { |
@@ -7,6 +7,8 @@ 'use strict' | ||
let texturesCache = setTexture.cache = new WeakMap(); | ||
let texturesIdx = new WeakMap(); | ||
const _WeakMap = require('is-firefox') ? Map : WeakMap; | ||
let texturesCache = setTexture.cache = new _WeakMap(); | ||
let texturesIdx = new _WeakMap(); | ||
module.exports = setTexture; | ||
@@ -61,3 +63,3 @@ | ||
if (texture.locations == null) { | ||
texture.locations = new WeakMap(); | ||
texture.locations = new _WeakMap(); | ||
} | ||
@@ -64,0 +66,0 @@ if (!texture.locations.has(program)) { |
@@ -10,4 +10,6 @@ /* @module gl-util/unifrom */ | ||
let uniformsCache = setUniform.cache = new WeakMap(); | ||
const _WeakMap = require('is-firefox') ? Map : WeakMap; | ||
let uniformsCache = setUniform.cache = new _WeakMap(); | ||
module.exports = setUniform; | ||
@@ -14,0 +16,0 @@ |
82486
562
6
+ Addedis-firefox@^1.0.3
+ Addedweakmap-shim@^1.1.0
+ Addedis-firefox@1.0.3(transitive)
+ Addedweakmap-shim@1.1.1(transitive)