Skip to content

Commit

Permalink
IE doesn't know indexOf for arrays FS#2381
Browse files Browse the repository at this point in the history
this fixes another IE javascript problem in edit mode
  • Loading branch information
splitbrain committed Nov 27, 2011
1 parent 8d73905 commit 29a277b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scripts/editor.js
Expand Up @@ -130,7 +130,7 @@ var dw_editor = {
* @param event e - the key press event object
*/
keyHandler: function(e){
if([8, 13, 32].indexOf(e.keyCode) === -1) {
if(jQuery.inArray(e.keyCode,[8, 13, 32]) === -1) {
return;
}
var selection = getSelection(this);
Expand Down

0 comments on commit 29a277b

Please sign in to comment.