push.apply to add json.ignore

This commit is contained in:
David DeSandro
2013-01-30 22:40:37 -05:00
parent 0cb38676ef
commit a8a4f6fd2c

View File

@@ -247,7 +247,7 @@ Package.prototype.cleanUpLocal = function () {
Package.prototype.removeLocalPaths = function () {
var removePatterns = ['.git'];
if (this.json.ignore) {
removePatterns = removePatterns.concat(this.json.ignore);
removePatterns.push.apply(removePatterns, this.json.ignore);
}
var removePaths = [];