arnontp / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

Avoid creation of a new global JavaScript variable in OAuth.addToURL #174

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
diff --git a/share/www/script/oauth.js b/share/www/script/oauth.js
index aa0019d..0eb14b3 100644
--- a/share/www/script/oauth.js
+++ b/share/www/script/oauth.js
@@ -259,7 +259,7 @@ OAuth.setProperties(OAuth, // utility functions
     }
 ,
     addToURL: function addToURL(url, parameters) {
-        newURL = url;
+        var newURL = url;
         if (parameters != null) {
             var toAdd = OAuth.formEncode(parameters);
             if (toAdd.length > 0) {

Original issue reported on code.google.com by fdman...@gmail.com on 21 Jun 2010 at 10:30

GoogleCodeExporter commented 9 years ago

Original comment by morten.f...@gmail.com on 29 Mar 2011 at 6:00