ab-mediaquery
Advanced tools
Comparing version 1.2.0 to 1.3.1
!(function(name, definition) { | ||
if (typeof module != 'undefined') module.exports = definition(); | ||
else if (typeof define == 'function' && typeof define.amd == 'object') define(definition); | ||
else this[name] = definition(); | ||
}('mediaQuery', function() { | ||
if (typeof module != 'undefined') { | ||
module.exports = definition(); | ||
} else if (typeof define == 'function' && typeof define.amd == 'object') { | ||
define(definition); | ||
} else { | ||
this[name] = definition(); | ||
} | ||
}('abMediaQuery', function() { | ||
@@ -141,3 +145,3 @@ 'use strict'; | ||
var that = this, | ||
event = new Event('changed.ab-mediaquery'), | ||
event = new CustomEvent('changed.ab-mediaquery'), | ||
newSize, resizeTimer; | ||
@@ -164,3 +168,3 @@ | ||
function mediaQuery(opt) { | ||
function abMediaQuery(opt) { | ||
if (typeof window.AB === 'undefined') window.AB = {}; | ||
@@ -170,3 +174,3 @@ window.AB.mediaQuery = new MediaQuery(opt); | ||
return mediaQuery; | ||
})); | ||
return abMediaQuery; | ||
})); |
{ | ||
"name": "ab-mediaquery", | ||
"version": "1.2.0", | ||
"version": "1.3.1", | ||
"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", |
@@ -24,5 +24,5 @@ # AB-mediaQuery | ||
Simple call `mediaQuery` function with no parameters: | ||
Simple call `abMediaQuery` function with no parameters: | ||
``` | ||
mediaQuery(); | ||
abMediaQuery(); | ||
``` | ||
@@ -69,5 +69,5 @@ | ||
Then include `_AB-mediaQuery.scss`: | ||
Then import `_AB-mediaQuery.scss`: | ||
``` | ||
@include 'path/to/AB-mediaQuery' | ||
@import 'path/to/AB-mediaQuery' | ||
``` | ||
@@ -77,5 +77,5 @@ | ||
Simple call `mediaQuery` function with no parameters: | ||
Simple call `abMediaQuery` function with no parameters: | ||
``` | ||
mediaQuery(); | ||
abMediaQuery(); | ||
``` | ||
@@ -88,3 +88,3 @@ | ||
``` | ||
mediaQuery({ | ||
abMediaQuery({ | ||
bp: { | ||
@@ -91,0 +91,0 @@ small: '480em', |
Sorry, the diff of this file is not supported yet
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
12890
143