Skip to content

Commit

Permalink
CM 3.1's Doc implementation does not expose undo and redo at initiali…
Browse files Browse the repository at this point in the history
…zation. When binding functions to our faked keyrow, we need to call those functions dynamically
  • Loading branch information
schanzer committed Apr 20, 2013
1 parent d3d2473 commit 7a38451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions war-src/js/openEditor/textcontainer.js
Expand Up @@ -145,8 +145,8 @@ var WeSchemeTextContainer;
{key:"-"},
{key:"*"},
{key:"/"},
{key:'<img src="/images/ios-keyboard/undo.png">', fn: editor.undo},
{key:'<img src="/images/ios-keyboard/redo.png">', fn: editor.redo}
{key:'<img src="/images/ios-keyboard/undo.png">', fn: function(){editor.undo();}},
{key:'<img src="/images/ios-keyboard/redo.png">', fn: function(){editor.redo();}}
];
editor.addKeyrow(keyArray, '/sounds/ios-keyboard/tock.mp3');
}
Expand Down

0 comments on commit 7a38451

Please sign in to comment.