summaryrefslogtreecommitdiff
path: root/lib/scripts/editor.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-11-27 16:42:29 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-11-27 16:42:29 +0100
commit29a277ba918a65400b1beb961d142772efc26897 (patch)
treeee14842154bb468027c2daa6ec1db4a33bdae6e7 /lib/scripts/editor.js
parent8d739053e2e2092fa7136a1709c730407f770143 (diff)
downloadrpg-29a277ba918a65400b1beb961d142772efc26897.tar.gz
rpg-29a277ba918a65400b1beb961d142772efc26897.tar.bz2
IE doesn't know indexOf for arrays FS#2381
this fixes another IE javascript problem in edit mode
Diffstat (limited to 'lib/scripts/editor.js')
-rw-r--r--lib/scripts/editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scripts/editor.js b/lib/scripts/editor.js
index f36d446d5..042e34608 100644
--- a/lib/scripts/editor.js
+++ b/lib/scripts/editor.js
@@ -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);