mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Merge pull request #4297 from PaulAdamDavis/rm-console-error
Remove console.error from shortcuts-route mixin
This commit is contained in:
commit
266243501d
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* global key, console */
|
/* global key */
|
||||||
|
|
||||||
//Configure KeyMaster to respond to all shortcuts,
|
//Configure KeyMaster to respond to all shortcuts,
|
||||||
//even inside of
|
//even inside of
|
||||||
|
@ -17,7 +17,7 @@ key.setScope('default');
|
||||||
* and implement a `shortcuts` hash.
|
* and implement a `shortcuts` hash.
|
||||||
* In this hash, keys are shortcut combinations and values are route action names.
|
* In this hash, keys are shortcut combinations and values are route action names.
|
||||||
* (see [keymaster docs](https://github.com/madrobby/keymaster/blob/master/README.markdown)),
|
* (see [keymaster docs](https://github.com/madrobby/keymaster/blob/master/README.markdown)),
|
||||||
*
|
*
|
||||||
* ```javascript
|
* ```javascript
|
||||||
* shortcuts: {
|
* shortcuts: {
|
||||||
* 'ctrl+s, command+s': 'save',
|
* 'ctrl+s, command+s': 'save',
|
||||||
|
@ -73,7 +73,6 @@ var ShortcutsRoute = Ember.Mixin.create({
|
||||||
activate: function () {
|
activate: function () {
|
||||||
this._super();
|
this._super();
|
||||||
if (!this.shortcuts) {
|
if (!this.shortcuts) {
|
||||||
console.error('Shortcuts not found on route');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.registerShortcuts();
|
this.registerShortcuts();
|
||||||
|
|
Loading…
Add table
Reference in a new issue