Commit 89b3b8f7 authored by merlinofchaos's avatar merlinofchaos

Issue #1401518 bu gumanist: Fix array walking so it does not choke on array extenders.

parent 46bdfb05
......@@ -428,7 +428,7 @@
});
var html = '';
for (i in data.argument) {
for (var i = 0; i < data.argument.length; i++) {
var link = Drupal.CTools.AJAX.getPath(data.argument[i].file);
if (!Drupal.CTools.AJAX.css[link]) {
html += '<link class="ctools-temporary-css" type="text/css" rel="stylesheet" media="' + data.argument[i].media +
......@@ -458,7 +458,7 @@
var html = '';
var head = document.getElementsByTagName('head')[0];
for (i in data.argument) {
for (var i = 0; i < data.argument.length; i++) {
var link = Drupal.CTools.AJAX.getPath(data.argument[i]);
if (!Drupal.CTools.AJAX.scripts[link]) {
Drupal.CTools.AJAX.scripts[link] = link;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment