Skip to content

Commit

Permalink
Build: Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Feb 15, 2013
1 parent 822520e commit 56de05c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build/tasks/build.js
Expand Up @@ -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 ) {
Expand All @@ -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 {
Expand Down

0 comments on commit 56de05c

Please sign in to comment.