Comparing version 2.4.4 to 2.4.5
@@ -84,4 +84,5 @@ 'use strict'; | ||
* - renderers {Array} the template renderers that should be in | ||
* compatibility mode. By default, all the ones that extend from | ||
* IncrementalDomRenderer. | ||
* compatibility mode, either their constructors or strings | ||
* representing them (e.g. 'soy' or 'jsx'). By default, all the ones | ||
* that extend from IncrementalDomRenderer. | ||
* @type {Object} | ||
@@ -107,2 +108,8 @@ */ | ||
value: function getCompatibilityModeData() { | ||
// Compatibility mode can be set via the __METAL_COMPATIBILITY__ global var. | ||
if (!compatibilityModeData_) { | ||
if (typeof window !== 'undefined' && window.__METAL_COMPATIBILITY__) { | ||
core.enableCompatibilityMode(window.__METAL_COMPATIBILITY__); | ||
} | ||
} | ||
return compatibilityModeData_; | ||
@@ -109,0 +116,0 @@ } |
{ | ||
"name": "metal", | ||
"version": "2.4.4", | ||
"version": "2.4.5", | ||
"description": "Core functions from Metal.js, with utilities for dealing with arrays, objects and others.", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
@@ -60,4 +60,5 @@ 'use strict'; | ||
* - renderers {Array} the template renderers that should be in | ||
* compatibility mode. By default, all the ones that extend from | ||
* IncrementalDomRenderer. | ||
* compatibility mode, either their constructors or strings | ||
* representing them (e.g. 'soy' or 'jsx'). By default, all the ones | ||
* that extend from IncrementalDomRenderer. | ||
* @type {Object} | ||
@@ -75,2 +76,8 @@ */ | ||
static getCompatibilityModeData() { | ||
// Compatibility mode can be set via the __METAL_COMPATIBILITY__ global var. | ||
if (!compatibilityModeData_) { | ||
if (typeof window !== 'undefined' && window.__METAL_COMPATIBILITY__) { | ||
core.enableCompatibilityMode(window.__METAL_COMPATIBILITY__); | ||
} | ||
} | ||
return compatibilityModeData_; | ||
@@ -77,0 +84,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57464
1655