Sha256: cb1fbcf747f861a3ffc2708c2d9066b18376b836518b7b800ec68deb072a1c2c
Contents?: true
Size: 1.77 KB
Versions: 5
Compression:
Stored size: 1.77 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1396340891.3411698:@value"«{I" class:ETI"ProcessedAsset; FI"logical_path; TI"locomotive/cmd.js; FI" pathname; TI"‰/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/vendor/assets/javascripts/locomotive/cmd.js; FI"content_type; TI"application/javascript; TI" mtime; TI"2014-04-01T10:04:05+02:00; TI"length; TiÏI"digest; TI"%546aefd7b2a0ac7e25ebccb20b461e6c; FI"source; TI"Ï/** * Version 0.0.1 * Catch the CTRL+S keys combination and trigger a callback * Didier Lafforgue */ $.cmd = function(key, callback, args, options) { var keyCode = key.charCodeAt(0); var altKeyCode = keyCode + (32 * (keyCode < 97 ? 1 : -1)); options = (options || { ignoreCase: false }); if (!options.ignoreCase) altKeyCode = null; doc = options.document || window.document; $(doc).keydown(function(e) { var isCtrl = false; if (!args) args = []; // IE barks when args is null if (e.ctrlKey || e.metaKey) isCtrl = true; if ((keyCode == e.which || altKeyCode == e.which) && isCtrl) { e.preventDefault(); callback.apply(this, args); return false; } }); }; ; TI"dependency_digest; TI"%bd22eb4d58ecf9f6dc4d082ffe96efeb; FI"required_paths; T[I"‰/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/vendor/assets/javascripts/locomotive/cmd.js; FI"dependency_paths; T[{I" path; TI"‰/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/vendor/assets/javascripts/locomotive/cmd.js; FI" mtime; TI"2014-04-01T10:04:05+02:00; TI"digest; TI"%821185653274928f27b2d64317761424; FI" _version; TI"%ffd318ca8b794f42f5029101c2cf5d91; F
Version data entries
5 entries across 5 versions & 1 rubygems