twgl.js 5.0.2 → 5.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @license twgl.js 5.0.2 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
2
+ * @license twgl.js 5.0.3 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
3
3
  * Available via the MIT license.
4
4
  * see: http://github.com/greggman/twgl.js for details
5
5
  */
@@ -1588,6 +1588,10 @@ function warn() {
1588
1588
  var isTypeWeakMaps = new Map();
1589
1589
 
1590
1590
  function isType(object, type) {
1591
+ if (!object) {
1592
+ return false;
1593
+ }
1594
+
1591
1595
  var weakMap = isTypeWeakMaps.get(type);
1592
1596
 
1593
1597
  if (!weakMap) {
@@ -1,4 +1,4 @@
1
- /* @license twgl.js 5.0.2 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
1
+ /* @license twgl.js 5.0.3 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
2
2
  Available via the MIT license.
3
3
  see: http://github.com/greggman/twgl.js for details */
4
4
  /*
@@ -1952,6 +1952,9 @@ function warn(...args) {
1952
1952
  const isTypeWeakMaps = new Map();
1953
1953
 
1954
1954
  function isType(object, type) {
1955
+ if (!object) {
1956
+ return false;
1957
+ }
1955
1958
  let weakMap = isTypeWeakMaps.get(type);
1956
1959
  if (!weakMap) {
1957
1960
  weakMap = new WeakMap();
package/dist/5.x/twgl.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @license twgl.js 5.0.2 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
2
+ * @license twgl.js 5.0.3 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
3
3
  * Available via the MIT license.
4
4
  * see: http://github.com/greggman/twgl.js for details
5
5
  */
@@ -1588,6 +1588,10 @@ function warn() {
1588
1588
  var isTypeWeakMaps = new Map();
1589
1589
 
1590
1590
  function isType(object, type) {
1591
+ if (!object) {
1592
+ return false;
1593
+ }
1594
+
1591
1595
  var weakMap = isTypeWeakMaps.get(type);
1592
1596
 
1593
1597
  if (!weakMap) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twgl.js",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "A Tiny WebGL helper library",
5
5
  "main": "dist/5.x/twgl-full.js",
6
6
  "types": "dist/5.x/twgl-full.d.ts",