From f4070c850b432b36641f6fbcb7455cd3ea1b7ee6 Mon Sep 17 00:00:00 2001 From: Graeme Yeates Date: Fri, 12 Jun 2015 14:33:52 -0400 Subject: [PATCH 1/2] Alias restArgs as restParam --- test/functions.js | 4 ++++ underscore.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/functions.js b/test/functions.js index 7ceb49dfe..799ec510d 100644 --- a/test/functions.js +++ b/test/functions.js @@ -620,4 +620,8 @@ }, 0)(1, 2, 3, 4); }); + test('restParam', function() { + strictEqual(_.restParam, _.restArgs, 'Should be aliased'); + }); + }()); diff --git a/underscore.js b/underscore.js index c8d534b10..1229b5104 100644 --- a/underscore.js +++ b/underscore.js @@ -902,7 +902,7 @@ // often you call it. Useful for lazy initialization. _.once = _.partial(_.before, 2); - _.restArgs = restArgs; + _.restParam = _.restArgs = restArgs; // Object Functions // ---------------- From d9f4f7648ff38c86cc7456e42df9bd7b97847df4 Mon Sep 17 00:00:00 2001 From: Graeme Yeates Date: Fri, 12 Jun 2015 14:59:05 -0400 Subject: [PATCH 2/2] Prepare v1.9.0 --- component.json | 2 +- index.html | 52 +++++++++++++++++++++++++++++++++++++++++++++++++- package.json | 2 +- underscore.js | 4 ++-- 4 files changed, 55 insertions(+), 5 deletions(-) diff --git a/component.json b/component.json index 8c033f640..ed48032df 100644 --- a/component.json +++ b/component.json @@ -5,6 +5,6 @@ "repo" : "jashkenas/underscore", "main" : "underscore.js", "scripts" : ["underscore.js"], - "version" : "1.8.3", + "version" : "1.9.0", "license" : "MIT" } diff --git a/index.html b/index.html index b3b80bd2c..fc6f624f0 100644 --- a/index.html +++ b/index.html @@ -180,7 +180,7 @@