@discourse/itsatrap
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -1033,5 +1033,2 @@ /*global define:false */ | ||
self._handleKeyEvent = undefined; | ||
documentItsATrap && documentItsATrap.destroy(); | ||
documentItsATrap = null; | ||
}; | ||
@@ -1110,22 +1107,2 @@ | ||
/** | ||
* Init the global itsatrap functions | ||
* | ||
* This method is needed to allow the global itsatrap functions to work | ||
* now that itsatrap is a constructor function. | ||
*/ | ||
var documentItsATrap; | ||
ItsATrap.init = function() { | ||
documentItsATrap = ItsATrap(document); | ||
for (var method in documentItsATrap) { | ||
if (method.charAt(0) !== "_") { | ||
ItsATrap[method] = (function(method) { | ||
return function() { | ||
return documentItsATrap[method].apply(documentItsATrap, arguments); | ||
}; | ||
})(method); | ||
} | ||
} | ||
}; | ||
/** | ||
* adds a pause and unpause method to ItsATrap | ||
@@ -1167,4 +1144,2 @@ * this allows you to enable or disable keyboard shortcuts | ||
ItsATrap.init(); | ||
// expose itsatrap to the global object | ||
@@ -1171,0 +1146,0 @@ window.ItsATrap = ItsATrap; |
{ | ||
"name": "@discourse/itsatrap", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Fork of the original Mousetrap, Simple library for handling keyboard shortcuts", | ||
@@ -5,0 +5,0 @@ "main": "itsatrap.js", |
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
172670
2108