summaryrefslogtreecommitdiff
path: root/misc/ajax.js
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-03-30 14:36:11 -0400
committerDavid Rothstein <drothstein@gmail.com>2013-03-30 14:36:11 -0400
commit1d378ff882353b32716837d3ff901305e0aa05a8 (patch)
treea33cdf05cc820272e344a8965897dc1df9eb7f85 /misc/ajax.js
parent054c8abfea37f48cbfb3ff7bbc1ada97db1023a3 (diff)
downloadbrdo-1d378ff882353b32716837d3ff901305e0aa05a8.tar.gz
brdo-1d378ff882353b32716837d3ff901305e0aa05a8.tar.bz2
Issue #1901476 by caiosba | mstef: Fixed Uncaught TypeError: Cannot read property 'command' of undefined in ajax.js.
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);
}
}