]> source.dussan.org Git - jquery-ui.git/commitdiff
Build: Cleanup.
authorScott González <scott.gonzalez@gmail.com>
Fri, 15 Feb 2013 17:41:18 +0000 (12:41 -0500)
committerScott González <scott.gonzalez@gmail.com>
Fri, 15 Feb 2013 17:41:18 +0000 (12:41 -0500)
build/tasks/build.js

index cef9841983c72102de0ea47388b7f69281685552..34f6ece29ea85839dd1479946efbed7d263b8e67 100644 (file)
@@ -178,7 +178,7 @@ grunt.registerTask( "generate_themes", function() {
        var download, done,
                distFolder = "dist/" + grunt.template.process( grunt.config( "files.dist" ), grunt.config() ),
                target = "dist/" + grunt.template.process( grunt.config( "files.themes" ), grunt.config() ) + "/";
-               
+
        try {
                require.resolve( "download.jqueryui.com" );
        } catch( error ) {
@@ -195,11 +195,12 @@ grunt.registerTask( "generate_themes", function() {
        });
 
        done = this.async();
-       download.buildThemesBundle(function( err, files ) {
-               if ( err ) {
-                       grunt.log.error( err );
+       download.buildThemesBundle(function( error, files ) {
+               if ( error ) {
+                       grunt.log.error( error );
                        return done( false );
                }
+
                done(
                        files.every(function( file ) {
                                try {