dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "rdbms: correct atomic section examples in comments"
[lhc/web/wiklou.git]
/
resources
/
src
/
jquery
/
jquery.suggestions.js
diff --git
a/resources/src/jquery/jquery.suggestions.js
b/resources/src/jquery/jquery.suggestions.js
index
4f4edc9
..
39c601f
100644
(file)
--- a/
resources/src/jquery/jquery.suggestions.js
+++ b/
resources/src/jquery/jquery.suggestions.js
@@
-293,7
+293,7
@@
expandFrom = 'left';
// Catch invalid values, default to 'auto'
expandFrom = 'left';
// Catch invalid values, default to 'auto'
- } else if (
$.inArray( expandFrom, [ 'left', 'right', 'start', 'end', 'auto' ]
) === -1 ) {
+ } else if (
[ 'left', 'right', 'start', 'end', 'auto' ].indexOf( expandFrom
) === -1 ) {
expandFrom = 'auto';
}
expandFrom = 'auto';
}
@@
-757,7
+757,7
@@
];
if ( context.data.keypressedCount === 0 &&
e.which === context.data.keypressed &&
];
if ( context.data.keypressedCount === 0 &&
e.which === context.data.keypressed &&
-
$.inArray( e.which, allowed
) !== -1
+
allowed.indexOf( e.which
) !== -1
) {
$.suggestions.keypress( e, context, context.data.keypressed );
}
) {
$.suggestions.keypress( e, context, context.data.keypressed );
}