From 63b59c2574eda8a2744c0b50ee4ecb4554aef108 Mon Sep 17 00:00:00 2001 From: Paul Adam Davis Date: Fri, 17 Oct 2014 13:13:47 +0100 Subject: [PATCH] Remove console.error from shortcuts-route mixing No issue Safari (iOS 8 & OS X Yosemite) throws a massive hissy fit about `console.error` and goes on to break all the things. This PR simply removes it. --- ghost/admin/mixins/shortcuts-route.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ghost/admin/mixins/shortcuts-route.js b/ghost/admin/mixins/shortcuts-route.js index 1d74d5380c..70574fec78 100644 --- a/ghost/admin/mixins/shortcuts-route.js +++ b/ghost/admin/mixins/shortcuts-route.js @@ -1,4 +1,4 @@ -/* global key, console */ +/* global key */ //Configure KeyMaster to respond to all shortcuts, //even inside of @@ -17,7 +17,7 @@ key.setScope('default'); * and implement a `shortcuts` hash. * 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)), - * + * * ```javascript * shortcuts: { * 'ctrl+s, command+s': 'save', @@ -73,7 +73,6 @@ var ShortcutsRoute = Ember.Mixin.create({ activate: function () { this._super(); if (!this.shortcuts) { - console.error('Shortcuts not found on route'); return; } this.registerShortcuts();