Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
d95e2b79
Commit
d95e2b79
authored
Nov 10, 2014
by
Marian Oancea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed jshint warnings
parent
6fc5d8e8
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
ethereum.js
dist/ethereum.js
+2
-2
ethereum.js.map
dist/ethereum.js.map
+2
-2
ethereum.min.js
dist/ethereum.min.js
+1
-1
gulpfile.js
gulpfile.js
+6
-6
main.js
lib/main.js
+2
-2
No files found.
dist/ethereum.js
View file @
d95e2b79
This diff is collapsed.
Click to expand it.
dist/ethereum.js.map
View file @
d95e2b79
This diff is collapsed.
Click to expand it.
dist/ethereum.min.js
View file @
d95e2b79
This diff is collapsed.
Click to expand it.
gulpfile.js
View file @
d95e2b79
...
...
@@ -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
:
fals
e
,
warnings
:
true
,
beautify
:
tru
e
,
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
'
]);
lib/main.js
View file @
d95e2b79
...
...
@@ -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
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment