Add ES6 _.assign alias of _.extend.

Former-commit-id: 20a0e0d295cb90a1756a5831b0b6684b97477170
This commit is contained in:
John-David Dalton
2012-11-11 13:05:52 -08:00
parent 07cbfdb424
commit ec6a709393
7 changed files with 117 additions and 67 deletions

View File

@@ -13,6 +13,7 @@
'collection',
'createCallback',
'ctor',
'guard',
'hasOwnProperty',
'index',
'isArguments',
@@ -27,6 +28,7 @@
'propertyIsEnumerable',
'result',
'skipProto',
'source',
'thisArg',
'value'
];
@@ -63,6 +65,7 @@
'all',
'amd',
'any',
'assign',
'attachEvent',
'bind',
'bindAll',
@@ -212,7 +215,7 @@
return source;
}
// remove copyright to add later in post-compile.js
// remove copyright/license header to add later in post-compile.js
source = source.replace(/\/\*![\s\S]+?\*\//, '');
// add brackets to whitelisted properties so the Closure Compiler won't mung them