angular-wheelie
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "angular-wheelie", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Mousewheel as an angular service", | ||
@@ -5,0 +5,0 @@ "main": "dist/angular-wheelie.js", |
/** | ||
* angular-wheelie | ||
* Version: 1.1.0 | ||
* Version: 1.1.1 | ||
* (c) 2014-2016 Joel Mukuthu | ||
* MIT License | ||
* Built on: 16-07-2016 00:30:42 GMT+0200 | ||
* Built on: 02-08-2016 02:11:06 GMT+0200 | ||
**/ | ||
@@ -8,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
/* angular-wheelie v1.1.0, (c) 2014-2016 Joel Mukuthu, MIT License, built: 16-07-2016 00:30:42 GMT+0200 */ | ||
/* angular-wheelie v1.1.1, (c) 2014-2016 Joel Mukuthu, MIT License, built: 02-08-2016 02:11:06 GMT+0200 */ | ||
angular.module("wheelie",[]),angular.module("wheelie").factory("wheelie",[function(){return{bind:function(a,b){function c(a){a.originalEvent&&(a=a.originalEvent);var c;c=Math.max(-1,Math.min(1,a.wheelDelta||-(a.deltaY||a.detail))),isNaN(c)||0===c||(c>0?b.up&&b.up(a):b.down&&b.down(a))}if(b=b||{},angular.isDefined(b.up)&&!angular.isFunction(b.up))throw new Error("The 'up' callback must be a function");if(angular.isDefined(b.down)&&!angular.isFunction(b.down))throw new Error("The 'down' callback must be a function");if(!angular.isDefined(b.up)&&!angular.isDefined(b.down))throw new Error("At least one callback ('up' or 'down') must be provided");a.data("___wheelie_bindWheel___",c),a.on("wheel mousewheel onmousewheel",c)},unbind:function(a){var b=a.data("___wheelie_bindWheel___");angular.isFunction(b)&&(a.data("___wheelie_bindWheel___",null),a.off("wheel mousewheel onmousewheel",b))}}}]); |
{ | ||
"name": "angular-wheelie", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Mousewheel as an angular service", | ||
@@ -21,3 +21,3 @@ "main": "dist/angular-wheelie.js", | ||
"angular-mocks": "^1.2.24", | ||
"eslint": "^3.1.0", | ||
"eslint": "^3.2.0", | ||
"grunt": "^1.0.1", | ||
@@ -32,8 +32,8 @@ "grunt-contrib-clean": "^1.0.0", | ||
"karma-mocha": "^1.0.1", | ||
"karma-mocha-reporter": "^2.0.3", | ||
"karma-mocha-reporter": "^2.0.5", | ||
"karma-phantomjs-launcher": "^1.0.0", | ||
"load-grunt-tasks": "^3.5.0", | ||
"mocha": "^2.5.3", | ||
"phantomjs-prebuilt": "^2.1.7", | ||
"sinon": "^1.17.4", | ||
"mocha": "^3.0.0", | ||
"phantomjs-prebuilt": "^2.1.8", | ||
"sinon": "^1.17.5", | ||
"unexpected": "^10.13.3", | ||
@@ -40,0 +40,0 @@ "unexpected-sinon": "^10.2.1" |
@@ -22,3 +22,3 @@ module.exports = function (config) { | ||
'node_modules/angular-mocks/angular-mocks.js', | ||
'node_modules/sinon/pkg/sinon-1.17.4.js', | ||
'node_modules/sinon/pkg/sinon.js', | ||
'node_modules/unexpected/unexpected.js', | ||
@@ -25,0 +25,0 @@ 'node_modules/unexpected-sinon/lib/unexpected-sinon.js', |
25028