1
0
forked from GitHub/gf-core

Omit redundant trailing "&" in jsonp url

This commit is contained in:
hallgren
2010-04-15 13:48:28 +00:00
parent 0b1a2bb20b
commit 603536a2f2

View File

@@ -16,8 +16,8 @@ function jsonp(url,callback)
url += "&jsonp=" url += "&jsonp="
else else
url += "?jsonp=" url += "?jsonp="
url += callback + "&"; url += callback;
//url += new Date().getTime().toString(); // prevent caching //url += "&" + new Date().getTime().toString(); // prevent caching
var script = empty("script"); var script = empty("script");
script.setAttribute("src",url); script.setAttribute("src",url);