angular-wheelie
Advanced tools
Comparing version 1.0.2 to 1.1.0
{ | ||
"name": "angular-wheelie", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Mousewheel as an angular service", | ||
@@ -15,2 +15,5 @@ "main": "dist/angular-wheelie.js", | ||
], | ||
"dependencies": { | ||
"angular": "^1.2.24" | ||
}, | ||
"homepage": "https://github.com/joelmukuthu/angular-wheelie.git", | ||
@@ -17,0 +20,0 @@ "ignore": [ |
/** | ||
* angular-wheelie | ||
* Version: 1.0.2 | ||
* Version: 1.1.0 | ||
* (c) 2014-2016 Joel Mukuthu | ||
* MIT License | ||
* Built on: 30-06-2016 17:34:45 GMT+0200 | ||
* Built on: 16-07-2016 00:30:42 GMT+0200 | ||
**/ | ||
@@ -8,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
/* angular-wheelie v1.0.2, (c) 2014-2016 Joel Mukuthu, MIT License, built: 30-06-2016 17:34:45 GMT+0200 */ | ||
/* angular-wheelie v1.1.0, (c) 2014-2016 Joel Mukuthu, MIT License, built: 16-07-2016 00:30:42 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.0.2", | ||
"version": "1.1.0", | ||
"description": "Mousewheel as an angular service", | ||
@@ -20,4 +20,4 @@ "main": "dist/angular-wheelie.js", | ||
"devDependencies": { | ||
"angular-mocks": "^1.5.6", | ||
"eslint": "^2.11.1", | ||
"angular-mocks": "^1.2.24", | ||
"eslint": "^3.1.0", | ||
"grunt": "^1.0.1", | ||
@@ -28,3 +28,3 @@ "grunt-contrib-clean": "^1.0.0", | ||
"grunt-release-it": "^1.0.1", | ||
"karma": "^0.13.22", | ||
"karma": "^1.1.1", | ||
"karma-coverage": "^1.0.0", | ||
@@ -43,6 +43,6 @@ "karma-coveralls": "^1.1.2", | ||
"dependencies": { | ||
"angular": "^1.5.6" | ||
"angular": "^1.2.24" | ||
}, | ||
"peerDependencies": { | ||
"angular": "^1.5.6" | ||
"angular": "^1.2.24" | ||
}, | ||
@@ -49,0 +49,0 @@ "directories": { |
# angular-wheelie | ||
[![Build Status](https://travis-ci.org/joelmukuthu/angular-wheelie.svg?branch=master)](https://travis-ci.org/joelmukuthu/angular-wheelie) [![Dependency Status](https://david-dm.org/joelmukuthu/angular-wheelie.svg)](https://david-dm.org/joelmukuthu/angular-wheelie) [![Licence](https://img.shields.io/npm/l/angular-wheelie.svg)](https://github.com/joelmukuthu/angular-wheelie/blob/master/LICENSE.md) [![Coverage Status](https://coveralls.io/repos/github/joelmukuthu/angular-wheelie/badge.svg?branch=master)](https://coveralls.io/github/joelmukuthu/angular-wheelie?branch=master) [![Bower version](https://img.shields.io/bower/v/angular-wheelie.svg)](https://github.com/joelmukuthu/angular-wheelie) [![npm version](https://img.shields.io/npm/v/angular-wheelie.svg)](https://www.npmjs.com/package/angular-wheelie) | ||
angular-wheelie exposes a service that allows you to bind mousewheel events to an angular element. | ||
angular-wheelie exposes a service that allows you to bind mousewheel events to | ||
an angular element. | ||
@@ -6,0 +7,0 @@ ### Installation |
Sorry, the diff of this file is not supported yet
25035
538
72
Updatedangular@^1.2.24