Permalink
Browse files

Made currentParam a local variable

  • Loading branch information...
gomfunkel committed Jul 30, 2012
1 parent 3f8a5d3 commit 2f466ec07fdb97ff547f965b614f2d2bf36e8100
@@ -42,6 +42,7 @@ module.exports = MailChimpAPI_v1_1;
MailChimpAPI_v1_1.prototype.execute = function (method, availableParams, givenParams, callback) {
var finalParams = { apikey : this.apiKey };
+ var currentParam;
for (var i = 0; i < availableParams.length; i++) {
currentParam = availableParams[i];
@@ -42,6 +42,7 @@ module.exports = MailChimpAPI_v1_2;
MailChimpAPI_v1_2.prototype.execute = function (method, availableParams, givenParams, callback) {
var finalParams = { apikey : this.apiKey };
+ var currentParam;
for (var i = 0; i < availableParams.length; i++) {
currentParam = availableParams[i];
@@ -42,6 +42,7 @@ module.exports = MailChimpAPI_v1_3;
MailChimpAPI_v1_3.prototype.execute = function (method, availableParams, givenParams, callback) {
var finalParams = { apikey : this.apiKey };
+ var currentParam;
for (var i = 0; i < availableParams.length; i++) {
currentParam = availableParams[i];
@@ -46,6 +46,7 @@ MailChimpExportAPI_v1_0.prototype.execute = function (method, availableParams, g
var self = this;
var finalParams = { apikey : this.apiKey };
+ var currentParam;
for (var i = 0; i < availableParams.length; i++) {
currentParam = availableParams[i];
@@ -44,6 +44,7 @@ module.exports = MailChimpSTSAPI_v1_0;
MailChimpSTSAPI_v1_0.prototype.execute = function (method, availableParams, givenParams, callback) {
var finalParams = [ 'apikey=' + encodeURIComponent(this.apiKey) ];
+ var currentParam;
for (var i = 0; i < availableParams.length; i++) {
currentParam = availableParams[i];
@@ -41,6 +41,7 @@ module.exports = MandrillAPI_v1_0;
MandrillAPI_v1_0.prototype.execute = function (method, availableParams, givenParams, callback) {
var finalParams = { key : this.apiKey };
+ var currentParam;
for (var i = 0; i < availableParams.length; i++) {
currentParam = availableParams[i];

0 comments on commit 2f466ec

Please sign in to comment.