matchmediaquery
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -43,3 +43,5 @@ 'use strict'; | ||
function dispose(){ | ||
mql.removeListener(update); | ||
if(mql){ | ||
mql.removeListener(update); | ||
} | ||
} | ||
@@ -46,0 +48,0 @@ } |
{ | ||
"name": "matchmediaquery", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Media queries for your client and server", | ||
@@ -31,5 +31,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"code": "^1.3.0", | ||
"lab": "^5.2.1" | ||
"code": "^4.1.0", | ||
"lab": "^14.1.1" | ||
} | ||
} |
@@ -37,2 +37,9 @@ 'use strict'; | ||
}); | ||
lab.test('can attempt to dispose on server', function(done){ | ||
var mql = matchMedia('(max-width: 123px)', { width: 123 }); | ||
mql.removeListener(noop); | ||
done(); | ||
}); | ||
}); |
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
5252
78