[Chore] Eslint

This commit is contained in:
0xfff 2016-11-01 02:38:42 +01:00
parent 373cc64526
commit 81023e5d2b

View file

@ -28,7 +28,7 @@
* } * }
*/ */
;(function($, undefined) { ;(function($) {
'use strict'; 'use strict';
function parseCssProperty(str) { function parseCssProperty(str) {
@ -72,6 +72,7 @@
breakpointCurrent = parseInt(window.mq.currentBreakpoint.value, 10); breakpointCurrent = parseInt(window.mq.currentBreakpoint.value, 10);
if (typeof options !== 'object') { if (typeof options !== 'object') {
// No or wrong arguments passed // No or wrong arguments passed
throw 'Illegal argument of type "' + typeof options + '", expected "object"'; throw 'Illegal argument of type "' + typeof options + '", expected "object"';
} else if (typeof options.to !== 'undefined' && typeof options.from !== 'undefined') { } else if (typeof options.to !== 'undefined' && typeof options.from !== 'undefined') {
@ -108,4 +109,4 @@
currentBreakpoint: currentBreakpoint currentBreakpoint: currentBreakpoint
}; };
})(jQuery); }(jQuery));