diff options
author | David Rothstein <drothstein@gmail.com> | 2013-03-30 14:36:11 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-03-30 14:36:11 -0400 |
commit | 1d378ff882353b32716837d3ff901305e0aa05a8 (patch) | |
tree | a33cdf05cc820272e344a8965897dc1df9eb7f85 /misc | |
parent | 054c8abfea37f48cbfb3ff7bbc1ada97db1023a3 (diff) | |
download | brdo-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')
-rw-r--r-- | misc/ajax.js | 2 |
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); } } |