Sha256: 0e6170a85045556f66b854573f0616ad747cc75e693d6b5deba46ace59459ea6

Contents?: true

Size: 449 Bytes

Versions: 16

Compression:

Stored size: 449 Bytes

Contents

'use strict';

function KeyBinding(_name, _bindKey) {
  this.name = _name;
  this.bindKey = _bindKey;
}

KeyBinding.prototype.withKeyFn = function(_keyFn) {
  return {
    name: this.name,
    bindKey: this.bindKey,
    keyFn: _keyFn,
    aceKeyCmd: {
      name: this.name,
      bindKey: this.bindKey,
      exec: _keyFn
    },
    hotKey: {
      combo: _.toArray(this.bindKey),
      description: this.name,
      callback: _keyFn
    }
  };
};

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
aleph_analytics-0.4.9.pre.dev app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.4.8 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.4.7 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.4.4 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.4.2 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.4.1 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.3.0 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.2.0 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.1.0 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.0.6 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.0.5 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.0.4 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.0.3 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.0.2 app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.0.1.alpha app/assets/javascripts/lib/key_binding.js
aleph_analytics-0.0.0.alpha app/assets/javascripts/lib/key_binding.js