react-responsive-mixin
Advanced tools
Comparing version 0.3.5 to 0.4.0
@@ -13,3 +13,3 @@ var canUseDOM = require('can-use-dom'); | ||
} | ||
enquire.register(query, handler); | ||
canUseDOM && enquire.register(query, handler); | ||
@@ -25,3 +25,3 @@ // Queue the handlers to unregister them at unmount | ||
this._responsiveMediaHandlers.forEach(function(obj) { | ||
enquire.unregister(obj.query, obj.handler); | ||
canUseDOM && enquire.unregister(obj.query, obj.handler); | ||
}); | ||
@@ -32,2 +32,2 @@ } | ||
module.exports = ResponsiveMixin; | ||
module.exports = ResponsiveMixin; |
{ | ||
"name": "react-responsive-mixin", | ||
"version": "0.3.5", | ||
"version": "0.4.0", | ||
"description": "Mixin to develop responsive react components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
161453
176