ab-mediaquery
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -9,3 +9,3 @@ ;(function(name, definition) { | ||
var MediaQuery = function(opt) { | ||
var Plugin = function(opt) { | ||
this.settings = AB.extend(MediaQuery.defaults, opt); | ||
@@ -18,3 +18,3 @@ this.queries = this.settings.bp; | ||
MediaQuery.defaults = { | ||
Plugin.defaults = { | ||
bp: {}, | ||
@@ -24,3 +24,3 @@ delay: 200 | ||
MediaQuery.prototype = { | ||
Plugin.prototype = { | ||
init: function() { | ||
@@ -45,3 +45,3 @@ this.current = this._getCurrentSize(); | ||
_watcher: function() { | ||
var that = this, | ||
var that = this, | ||
event = new CustomEvent('changed.ab-mediaquery'), | ||
@@ -69,8 +69,3 @@ newSize, resizeTimer; | ||
function abMediaQuery(opt) { | ||
if (typeof AB === 'undefined') { | ||
console.log("AB-mediaQuery require another-brick, please read README.md"); | ||
return; | ||
} | ||
AB.mediaQuery = new MediaQuery(opt); | ||
window.AB.mediaQuery = new Plugin(opt); | ||
} | ||
@@ -77,0 +72,0 @@ |
{ | ||
"name": "ab-mediaquery", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"description": "AB-mediaQuery is the JavaScript side of Media Queries. It proposes you some very useful methods for your scripts", | ||
@@ -5,0 +5,0 @@ "main": "AB-mediaQuery.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
6434
53