]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
fix custom build bug 1005/head
authorzymiboxpay <zhuyimin@iboxpay.com>
Wed, 18 Mar 2015 08:26:17 +0000 (16:26 +0800)
committerzymiboxpay <zhuyimin@iboxpay.com>
Wed, 18 Mar 2015 08:26:17 +0000 (16:26 +0800)
gulpfile.js

index 0610135c914f611c3c7dd70cf992c5f4884d97fd..29fa13bf08bc166b0e91e035dde1073d082ba0b3 100644 (file)
@@ -24,11 +24,11 @@ var srcDir = './src/';
 gulp.task('build', function(){
 
        // Default to all of the chart types, with Chart.Core first
-       var srcFiles = [new FileName('Core')],
+       var srcFiles = [FileName('Core')],
                isCustom = !!(util.env.types),
                outputDir = (isCustom) ? 'custom' : '.';
        if (isCustom){
-               util.env.types.split(',').forEach(function(type){ return srcFiles.push(new FileName(type));});
+               util.env.types.split(',').forEach(function(type){ return srcFiles.push(FileName(type));});
        }
        else{
                // Seems gulp-concat remove duplicates - nice!