aboutsummaryrefslogtreecommitdiffstats
path: root/tests/jquery.simulate.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-10 11:45:48 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-10 11:45:48 -0400
commita3f1a34d3b997550a5a8cf4c630e6580cd37cde5 (patch)
treecd8ff7023ca59a52fa65d3b50e67da76147ee105 /tests/jquery.simulate.js
parentfa62f21e5ad09e5368efc3079859730e23a7123b (diff)
downloadjquery-ui-a3f1a34d3b997550a5a8cf4c630e6580cd37cde5.tar.gz
jquery-ui-a3f1a34d3b997550a5a8cf4c630e6580cd37cde5.zip
Remove use of $.browser; add $.ui.ie and $.ui.ie6 temporarily.
Diffstat (limited to 'tests/jquery.simulate.js')
-rw-r--r--tests/jquery.simulate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/jquery.simulate.js b/tests/jquery.simulate.js
index e281e2fee..790c88c27 100644
--- a/tests/jquery.simulate.js
+++ b/tests/jquery.simulate.js
@@ -148,7 +148,7 @@ $.extend( $.simulate.prototype, {
}
// TODO: can we hook into core's logic?
- if ( $.browser.msie || $.browser.opera ) {
+ if ( $.ui.ie || (({}).toString.call( window.opera ) === "[object Opera]") ) {
// TODO: is charCode ever <0 ? Can we just use charCode || keyCode?
event.keyCode = (options.charCode > 0) ? options.charCode : options.keyCode;
event.charCode = undefined;