Commit d95e2b79 authored by Marian Oancea's avatar Marian Oancea

Fixed jshint warnings

parent 6fc5d8e8
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -36,7 +36,7 @@ gulp.task('clean', ['lint'], function(cb) {
del([ DEST ], cb);
});
gulp.task('build', ['clean'], function () {
gulp.task('prepare', ['clean'], function () {
return browserify({
debug: true,
insert_global_vars: false,
......@@ -59,8 +59,8 @@ gulp.task('build', ['clean'], function () {
hoist_vars: true,
negate_iife: false
},
beautify: false,
warnings: true,
beautify: true,
warnings: true
})
.bundle()
.pipe(exorcist(path.join( DEST, 'ethereum.js.map')))
......@@ -68,7 +68,7 @@ gulp.task('build', ['clean'], function () {
.pipe(gulp.dest( DEST ));
});
gulp.task('uglify', ['build'], function(){
gulp.task('build', ['prepare'], function(){
return gulp.src( DEST + 'ethereum.js')
.pipe(uglify())
.pipe(rename('ethereum.min.js'))
......@@ -76,7 +76,7 @@ gulp.task('uglify', ['build'], function(){
});
gulp.task('watch', function() {
gulp.watch(['./lib/*.js'], ['lint', 'build', 'uglify']);
gulp.watch(['./lib/*.js'], ['lint', 'prepare', 'build']);
});
gulp.task('default', ['bower', 'lint', 'build', 'uglify']);
gulp.task('default', ['bower', 'lint', 'prepare', 'build']);
......@@ -223,7 +223,7 @@
// Find termination
var str = "";
var i = 0, l = hex.length;
if (hex.substring(0, 2) == '0x')
if (hex.substring(0, 2) === '0x')
i = 2;
for(; i < l; i+=2) {
var code = hex.charCodeAt(i);
......@@ -447,7 +447,7 @@
if(data._id) {
var cb = web3._callbacks[data._id];
if (cb) {
cb.call(this, data.error, data.data)
cb.call(this, data.error, data.data);
delete web3._callbacks[data._id];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment