From: Christian Dywan Date: Sun, 11 Mar 2012 21:25:08 +0000 (+0100) Subject: Always use var in javascript for loops X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e2b7fdca7cf6ba94022347ee95028b763c8acf5;p=midori Always use var in javascript for loops Otherwise it may re-use global functions. --- diff --git a/extensions/formhistory/formhistory.c b/extensions/formhistory/formhistory.c index cc81cdef..db5a2344 100644 --- a/extensions/formhistory/formhistory.c +++ b/extensions/formhistory/formhistory.c @@ -193,7 +193,7 @@ formhistory_navigation_decision_cb (WebKitWebView* web_view, The field separator is "|||" */ const gchar* script = "function dumpForm (inputs) {" " var out = '';" - " for (i=0;i