summaryrefslogtreecommitdiff
path: root/misc/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ajax.js')
-rw-r--r--misc/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ajax.js b/misc/ajax.js
index 900ca1d22..90c3bb8bb 100644
--- a/misc/ajax.js
+++ b/misc/ajax.js
@@ -396,7 +396,7 @@ Drupal.ajax.prototype.success = function (response, status) {
Drupal.freezeHeight();
for (var i in response) {
- if (response[i]['command'] && this.commands[response[i]['command']]) {
+ if (response.hasOwnProperty(i) && response[i]['command'] && this.commands[response[i]['command']]) {
this.commands[response[i]['command']](this, response[i], status);
}
}