search for teh correct script type in the defer callback.

Should fix SF bug #3599063
This commit is contained in:
Vincent Sanders 2013-01-02 23:13:28 +00:00
parent bb10e7131f
commit beffd9e481
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ convert_script_defer_cb(hlcache_handle *script,
/* Find script */
for (i = 0, s = parent->scripts; i != parent->scripts_count; i++, s++) {
if (s->type == HTML_SCRIPT_ASYNC && s->data.handle == script)
if (s->type == HTML_SCRIPT_DEFER && s->data.handle == script)
break;
}