Comparing version 0.2.2 to 0.3.0
@@ -115,3 +115,6 @@ var Keyconfig, Shortcuts, events, getPlatformBindings, os, | ||
return function(sequence) { | ||
var cb, listener, ref; | ||
var cb, listener, ref, ref1; | ||
if (((ref = model.options) != null ? ref.enabled : void 0) === false) { | ||
return; | ||
} | ||
cb = function(e) { | ||
@@ -128,3 +131,3 @@ e.collection = collection; | ||
listeners.push(listener); | ||
if (((ref = model.options) != null ? ref.global : void 0) === true) { | ||
if (((ref1 = model.options) != null ? ref1.global : void 0) === true) { | ||
return Mousetrap.bindGlobal(listener.sequence, listener.cb); | ||
@@ -131,0 +134,0 @@ } else { |
{ | ||
"name": "shortcuts", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "manages keyboard shortcuts in browser", | ||
@@ -5,0 +5,0 @@ "main": "build/lib/index.js", |
Sorry, the diff of this file is not supported yet
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
16607
173