aboutsummaryrefslogtreecommitdiffstats
path: root/railties/html/javascripts/prototype.js
diff options
context:
space:
mode:
Diffstat (limited to 'railties/html/javascripts/prototype.js')
-rw-r--r--railties/html/javascripts/prototype.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/html/javascripts/prototype.js b/railties/html/javascripts/prototype.js
index 37635ccfab..5feddb6dda 100644
--- a/railties/html/javascripts/prototype.js
+++ b/railties/html/javascripts/prototype.js
@@ -268,7 +268,7 @@ Ajax.Request.prototype = (new Ajax.Base()).extend({
if (event == 'Complete')
(this.options['on' + this.transport.status]
- || this.options['on' + this.responseIsSuccess() ? 'Success' : 'Failure']
+ || this.options['on' + (this.responseIsSuccess() ? 'Success' : 'Failure')]
|| Prototype.emptyFunction)(this.transport);
(this.options['on' + event] || Prototype.emptyFunction)(this.transport);