From 92688c89ef81711f85dc71f53bc2bb5ab9a33925 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Fri, 19 Mar 2010 22:41:23 -0400 Subject: [PATCH] merging in matehat's nice refactor to splats (in arrays and otherwise) --- lib/nodes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nodes.js b/lib/nodes.js index c4c60ca6..dc44ad08 100644 --- a/lib/nodes.js +++ b/lib/nodes.js @@ -421,7 +421,7 @@ this.children = flatten([(this.variable = variable), (this.args = (args || []))]); this.compile_splat_arguments = (function(func, obj, args) { return (function() { - return func.apply(obj, args.concat(Array.prototype.slice.call(arguments, 0)));; + return func.apply(obj, args.concat(Array.prototype.slice.call(arguments, 0))); }); }(SplatNode.compile_mixed_array, this, [this.args])); this.prefix = ''; @@ -488,7 +488,7 @@ this.children = flatten([(this.meth = meth), (this.context = args[0]), (this.args = (args.slice(1) || []))]); this.compile_splat_arguments = (function(func, obj, args) { return (function() { - return func.apply(obj, args.concat(Array.prototype.slice.call(arguments, 0)));; + return func.apply(obj, args.concat(Array.prototype.slice.call(arguments, 0))); }); }(SplatNode.compile_mixed_array, this, [this.args])); return this; @@ -710,7 +710,7 @@ this.children = (this.objects = objects || []); this.compile_splat_literal = (function(func, obj, args) { return (function() { - return func.apply(obj, args.concat(Array.prototype.slice.call(arguments, 0)));; + return func.apply(obj, args.concat(Array.prototype.slice.call(arguments, 0))); }); }(SplatNode.compile_mixed_array, this, [this.objects])); return this;