Lint update-scroll.js

With the new .eslintrc
This commit is contained in:
Hyunje Alex Jun 2015-10-03 20:45:38 +09:00
parent 3d2d50c308
commit c285521caa

View File

@ -30,7 +30,7 @@ yStartEvent.initEvent('ps-y-reach-start', true, true);
yEndEvent.initEvent('ps-y-reach-end', true, true); yEndEvent.initEvent('ps-y-reach-end', true, true);
module.exports = function (element, axis, value) { module.exports = function (element, axis, value) {
if (typeof element === 'undefined' ) { if (typeof element === 'undefined') {
throw 'You must provide an element to the update-scroll function'; throw 'You must provide an element to the update-scroll function';
} }
@ -39,7 +39,7 @@ module.exports = function (element, axis, value) {
} }
if (typeof value === 'undefined') { if (typeof value === 'undefined') {
throw 'You must provide a value to the update-scroll function' throw 'You must provide a value to the update-scroll function';
} }
if (axis === 'top' && value <= 0) { if (axis === 'top' && value <= 0) {