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
d0b6f366
Commit
d0b6f366
authored
Jan 26, 2015
by
Marek Kotewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
watches are calling callback with a single result object, not a full jsonrpc response
parent
81bbe8c9
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
14 deletions
+18
-14
ethereum.js
dist/ethereum.js
+7
-5
ethereum.js.map
dist/ethereum.js.map
+3
-3
ethereum.min.js
dist/ethereum.min.js
+1
-1
filter.js
lib/filter.js
+4
-2
providermanager.js
lib/providermanager.js
+3
-3
No files found.
dist/ethereum.js
View file @
d0b6f366
...
...
@@ -573,8 +573,10 @@ Filter.prototype.changed = function(callback) {
/// trigger calling new message from people
Filter
.
prototype
.
trigger
=
function
(
messages
)
{
for
(
var
i
=
0
;
i
<
this
.
callbacks
.
length
;
i
++
)
{
this
.
callbacks
[
i
].
call
(
this
,
messages
);
for
(
var
i
=
0
;
i
<
this
.
callbacks
.
length
;
i
++
)
{
for
(
var
j
=
0
;
j
<
messages
;
j
++
)
{
this
.
callbacks
[
i
].
call
(
this
,
messages
[
j
]);
}
}
};
...
...
@@ -716,12 +718,12 @@ var ProviderManager = function() {
result
=
JSON
.
parse
(
result
);
// dont call the callback if result is
an error, empty array or fals
e
if
(
result
.
error
||
(
result
.
result
instanceof
Array
?
result
.
result
.
length
===
0
:
!
result
.
result
)
)
{
// dont call the callback if result is
not an array, or empty on
e
if
(
result
.
error
||
!
(
result
.
result
instanceof
Array
)
||
result
.
result
.
length
===
0
)
{
return
;
}
data
.
callback
(
result
);
data
.
callback
(
result
.
result
);
});
}
setTimeout
(
poll
,
12000
);
...
...
dist/ethereum.js.map
View file @
d0b6f366
This diff is collapsed.
Click to expand it.
dist/ethereum.min.js
View file @
d0b6f366
This diff is collapsed.
Click to expand it.
lib/filter.js
View file @
d0b6f366
...
...
@@ -47,8 +47,10 @@ Filter.prototype.changed = function(callback) {
/// trigger calling new message from people
Filter
.
prototype
.
trigger
=
function
(
messages
)
{
for
(
var
i
=
0
;
i
<
this
.
callbacks
.
length
;
i
++
)
{
this
.
callbacks
[
i
].
call
(
this
,
messages
);
for
(
var
i
=
0
;
i
<
this
.
callbacks
.
length
;
i
++
)
{
for
(
var
j
=
0
;
j
<
messages
;
j
++
)
{
this
.
callbacks
[
i
].
call
(
this
,
messages
[
j
]);
}
}
};
...
...
lib/providermanager.js
View file @
d0b6f366
...
...
@@ -49,12 +49,12 @@ var ProviderManager = function() {
result
=
JSON
.
parse
(
result
);
// dont call the callback if result is
an error, empty array or fals
e
if
(
result
.
error
||
(
result
.
result
instanceof
Array
?
result
.
result
.
length
===
0
:
!
result
.
result
)
)
{
// dont call the callback if result is
not an array, or empty on
e
if
(
result
.
error
||
!
(
result
.
result
instanceof
Array
)
||
result
.
result
.
length
===
0
)
{
return
;
}
data
.
callback
(
result
);
data
.
callback
(
result
.
result
);
});
}
setTimeout
(
poll
,
12000
);
...
...
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