diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-02-15 12:41:18 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-02-15 12:41:18 -0500 |
commit | 56de05cf9d8a0b5fbab66c9dd868221e022738f6 (patch) | |
tree | 5c0c1fe778f252d0087e7a03e6ca01dc6d51ddea /build/tasks/build.js | |
parent | 822520ece7520457c045b1dae77b6ffc5b96654a (diff) | |
download | jquery-ui-56de05cf9d8a0b5fbab66c9dd868221e022738f6.tar.gz jquery-ui-56de05cf9d8a0b5fbab66c9dd868221e022738f6.zip |
Build: Cleanup.
Diffstat (limited to 'build/tasks/build.js')
-rw-r--r-- | build/tasks/build.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js index cef984198..34f6ece29 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -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 { |