events
This commit is contained in:
@ -28,11 +28,9 @@ var web3 = require('./web3'); // jshint ignore:line
|
||||
/// should be used when we want to watch something
|
||||
/// it's using inner polling mechanism and is notified about changes
|
||||
/// TODO: change 'options' name cause it may be not the best matching one, since we have events
|
||||
var Filter = function(options, indexed, impl) {
|
||||
var Filter = function(options, impl) {
|
||||
|
||||
if (options._isEvent) {
|
||||
return options(indexed);
|
||||
} else if (typeof options !== "string") {
|
||||
if (typeof options !== "string") {
|
||||
|
||||
// topics property is deprecated, warn about it!
|
||||
if (options.topics) {
|
||||
|
Reference in New Issue
Block a user