Sha256: 0efd4bce2c003e064e7618868c16d3c5114177792e8c040a7577a7009df7abe6
Contents?: true
Size: 1.59 KB
Versions: 4
Compression:
Stored size: 1.59 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1364984302.7696168:@value"õ{I" class:EFI"ProcessedAsset; FI"logical_path; FI"locomotive/cmd.js; TI" pathname; FI"Y/Users/papipo/Projects/locomotive/engine/vendor/assets/javascripts/locomotive/cmd.js; TI"content_type; FI"application/javascript; FI" mtime; FI"2013-01-18T09:21:51+01:00; FI"length; FiÏI"digest; F"%7937bd8d17982789b177b2c9c91259f6I"source; FI"Ï/** * 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; } }); }; ; FI"dependency_digest; F"%dc12f6aa7298fcfd47a3b07b82d54931I"required_paths; F[I"Y/Users/papipo/Projects/locomotive/engine/vendor/assets/javascripts/locomotive/cmd.js; TI"dependency_paths; F[{I" path; FI"Y/Users/papipo/Projects/locomotive/engine/vendor/assets/javascripts/locomotive/cmd.js; TI" mtime; FI"2013-01-18T09:21:51+01:00; FI"digest; F"%132f43d3d87d39838cef8d6142b0a586I" _version; F"%6776f581a4329e299531e1d52aa59832
Version data entries
4 entries across 4 versions & 1 rubygems