From 92b55b827ef8ee2e61468e6c957643c52aceb9ad Mon Sep 17 00:00:00 2001 From: Stacy Simpson Date: Thu, 21 May 2015 08:55:55 -0400 Subject: [PATCH] Change the name of argument in repeat function to resolve problem optimizing --- jlinq.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jlinq.js b/jlinq.js index e8e0be6..61de730 100644 --- a/jlinq.js +++ b/jlinq.js @@ -214,23 +214,23 @@ var jl; //repeats the previous command with new //arguments - repeat:function(arguments) { + repeat:function(args) { //check if there is anything to repeat - if (!self.instance.lastCommand || arguments == null) { return; } + if (!self.instance.lastCommand || args == null) { return; } //get the array of arguments to work with - arguments = framework.util.toArray(arguments); + args = framework.util.toArray(args); //check if there is a field name has changed, and //if so, update the arguments to match - if (self.canRepeatCommand(arguments)) { - self.instance.lastField = arguments[0]; - arguments = framework.util.select(arguments, null, 1, null); + if (self.canRepeatCommand(args)) { + self.instance.lastField = args[0]; + args = framework.util.select(args, null, 1, null); } //invoke the command now - self.queue(self.instance.lastCommand, arguments); + self.queue(self.instance.lastCommand, args); }, //saves a command to evaluate later