summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/source/prototype-1.7/prototype.js
diff options
context:
space:
mode:
authorCiro Mattia Gonano <ciromattia@gmail.com>2013-09-11 15:56:48 +0200
committerCiro Mattia Gonano <ciromattia@gmail.com>2013-09-11 15:57:07 +0200
commit3069eaf35e833ffe4a1c1c7829dd7e168ae27420 (patch)
treed0c2e4d934cc34ba7d4232f759923b5a257dcb21 /framework/Web/Javascripts/source/prototype-1.7/prototype.js
parentb833247ce597ec26159b46c8dfbea7f1e265950b (diff)
Merge up to r3319
Diffstat (limited to 'framework/Web/Javascripts/source/prototype-1.7/prototype.js')
-rw-r--r--framework/Web/Javascripts/source/prototype-1.7/prototype.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/framework/Web/Javascripts/source/prototype-1.7/prototype.js b/framework/Web/Javascripts/source/prototype-1.7/prototype.js
index 37dd39ac..de5fff4a 100644
--- a/framework/Web/Javascripts/source/prototype-1.7/prototype.js
+++ b/framework/Web/Javascripts/source/prototype-1.7/prototype.js
@@ -2755,9 +2755,12 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, {
}
var PROBLEMATIC_ATTRIBUTE_READING = (function() {
- DIV.setAttribute('onclick', Prototype.emptyFunction);
+ // This test used to set 'onclick' to `Prototype.emptyFunction`, but that
+ // caused an (uncatchable) error in IE 10. For some reason, switching to
+ // an empty array prevents this issue.
+ DIV.setAttribute('onclick', []);
var value = DIV.getAttribute('onclick');
- var isFunction = (typeof value === 'function');
+ var isFunction = Object.isArray(value);
DIV.removeAttribute('onclick');
return isFunction;
})();