Skip to content

Commit

Permalink
Fix: Undefined variable
Browse files Browse the repository at this point in the history
- Wasn't causing an error in the Editor demos since they use a global `editor` variable!
- Fixes #34
  • Loading branch information
Allan Jardine committed Aug 24, 2017
1 parent b35be4c commit 7dde7d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/dataTables.keyTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ $.extend( KeyTable.prototype, {
}

if ( this.c.editor ) {
var editor = this.c.editor;

// Need to disable KeyTable when the main editor is shown
editor.on( 'open.keyTableMain', function (e, mode, action) {
if ( mode !== 'inline' && that.s.enable ) {
Expand Down

0 comments on commit 7dde7d9

Please sign in to comment.