ng-keyboard
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "ng-keyboard", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Keyboard shortcuts for angular apps", | ||
@@ -5,0 +5,0 @@ "main": "src/module.js", |
@@ -46,2 +46,9 @@ var _ = require('lodash'); | ||
/** | ||
* Global instance counter which is increased for each new instance | ||
* | ||
* @type {Number} | ||
*/ | ||
var instanceCounter = 0; | ||
/** | ||
* Set the instanceCounter for the initial instance | ||
@@ -51,3 +58,3 @@ * | ||
*/ | ||
this.instanceCounter = 0; | ||
this.instanceCounter = instanceCounter++; | ||
@@ -348,3 +355,3 @@ $window = angular.element($window); | ||
var newInst = Object.create(this); | ||
newInst.instanceCounter = this.instanceCounter + 1; | ||
newInst.instanceCounter = instanceCounter++; | ||
@@ -351,0 +358,0 @@ scope.$on('$destroy', function() { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
699788
1191