Fixed jshint warnings

pull/272/merge
Marian Oancea 10 years ago
parent 6fc5d8e81e
commit d95e2b7999
  1. 4
      dist/ethereum.js
  2. 4
      dist/ethereum.js.map
  3. 2
      dist/ethereum.min.js
  4. 12
      gulpfile.js
  5. 4
      lib/main.js

4
dist/ethereum.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -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];
}
}

Loading…
Cancel
Save