New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-wheelie

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-wheelie - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

test/bootstrap.js

2

bower.json
{
"name": "angular-wheelie",
"version": "1.0.0",
"version": "1.0.1",
"description": "Mousewheel as an angular service",

@@ -5,0 +5,0 @@ "main": "dist/angular-wheelie.js",

/**
* angular-wheelie
* Version: 1.0.0
* Version: 1.0.1
* (c) 2014-2016 Joel Mukuthu
* MIT License
* Built on: 07-06-2016 01:22:43 GMT+0200
* Built on: 07-06-2016 15:55:44 GMT+0200
**/

@@ -8,0 +8,0 @@

@@ -1,2 +0,2 @@

/* angular-wheelie v1.0.0, (c) 2014-2016 Joel Mukuthu, MIT License, built: 07-06-2016 01:22:43 GMT+0200 */
/* angular-wheelie v1.0.1, (c) 2014-2016 Joel Mukuthu, MIT License, built: 07-06-2016 15:55:44 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.0",
"version": "1.0.1",
"description": "Mousewheel as an angular service",

@@ -8,3 +8,3 @@ "main": "dist/angular-wheelie.js",

"lint": "eslint .",
"test": "mocha-phantomjs test/index.html",
"test": "karma start test/karma.conf.js",
"build": "npm run lint && npm test && grunt build",

@@ -28,5 +28,10 @@ "prepublish": "npm run lint && npm test"

"grunt-release-it": "^1.0.1",
"karma": "^0.13.22",
"karma-coverage": "^1.0.0",
"karma-coveralls": "^1.1.2",
"karma-mocha": "^1.0.1",
"karma-mocha-reporter": "^2.0.3",
"karma-phantomjs-launcher": "^1.0.0",
"load-grunt-tasks": "^3.5.0",
"mocha": "^2.5.3",
"mocha-phantomjs": "^4.0.2",
"phantomjs-prebuilt": "^2.1.7",

@@ -33,0 +38,0 @@ "sinon": "^1.17.4",

# 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?maxAge=2592000)]() [![Coverage Status](https://coveralls.io/repos/joelmukuthu/angular-wheelie/badge.svg)](https://coveralls.io/r/joelmukuthu/angular-wheelie) [![Bower version](https://img.shields.io/bower/v/angular-wheelie.svg?maxAge=2592000)]() [![npm version](https://img.shields.io/npm/v/angular-wheelie.svg?maxAge=2592000)]()
[![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)]() [![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)

@@ -30,3 +30,3 @@ angular-wheelie exposes a service that allows you to bind mousewheel events to an angular element.

```javascript
app.controller('MyController', ['wheelie', function (wheelie) {
app.controller('MyController', [ '$scope', 'wheelie', function ($scope, wheelie) {
var target = angular.element('#someElement');

@@ -44,3 +44,5 @@ // To listen for mousewheel events

// To unbind:
wheelie.unbind(target);
$scope.on('$destroy', function () {
wheelie.unbind(target);
});
}]);

@@ -47,0 +49,0 @@ ```

@@ -7,4 +7,5 @@ {

"inject": true,
"sinon": true
"sinon": true,
"weknowhow": true
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc