mirror of https://github.com/status-im/web3.js.git
gulp
This commit is contained in:
parent
80c0792e79
commit
cd0df61068
|
@ -3186,7 +3186,6 @@ Property.prototype.formatOutput = function (result) {
|
|||
Property.prototype.attachToObject = function (obj) {
|
||||
var proto = {
|
||||
get: this.get.bind(this),
|
||||
set: this.set.bind(this)
|
||||
};
|
||||
|
||||
var names = this.name.split('.');
|
||||
|
@ -3203,13 +3202,7 @@ Property.prototype.attachToObject = function (obj) {
|
|||
return prefix + name.charAt(0).toUpperCase() + name.slice(1);
|
||||
};
|
||||
|
||||
if (this.getter) {
|
||||
obj[toAsyncName('get', name)] = this.asyncGet.bind(this);
|
||||
}
|
||||
|
||||
if (this.setter) {
|
||||
obj[toAsyncName('set', name)] = this.asyncSet.bind(this);
|
||||
}
|
||||
obj[toAsyncName('get', name)] = this.asyncGet.bind(this);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -3224,19 +3217,6 @@ Property.prototype.get = function () {
|
|||
}));
|
||||
};
|
||||
|
||||
/**
|
||||
* Should be used to set value of the property
|
||||
*
|
||||
* @method set
|
||||
* @param {Object} new value of the property
|
||||
*/
|
||||
Property.prototype.set = function (value) {
|
||||
return RequestManager.getInstance().send({
|
||||
method: this.setter,
|
||||
params: [this.formatInput(value)]
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Should be used to asynchrounously get value of property
|
||||
*
|
||||
|
@ -3255,17 +3235,6 @@ Property.prototype.asyncGet = function (callback) {
|
|||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Should be used to asynchronously set value of property
|
||||
*
|
||||
* @method asyncSet
|
||||
* @param {Any} new value
|
||||
* @param {Function} callback
|
||||
*/
|
||||
Property.prototype.asyncSet = function (value, callback) {
|
||||
RequestManager.getInstance().sendAsync(this.formatInput(value), callback);
|
||||
};
|
||||
|
||||
module.exports = Property;
|
||||
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -3186,7 +3186,6 @@ Property.prototype.formatOutput = function (result) {
|
|||
Property.prototype.attachToObject = function (obj) {
|
||||
var proto = {
|
||||
get: this.get.bind(this),
|
||||
set: this.set.bind(this)
|
||||
};
|
||||
|
||||
var names = this.name.split('.');
|
||||
|
@ -3203,13 +3202,7 @@ Property.prototype.attachToObject = function (obj) {
|
|||
return prefix + name.charAt(0).toUpperCase() + name.slice(1);
|
||||
};
|
||||
|
||||
if (this.getter) {
|
||||
obj[toAsyncName('get', name)] = this.asyncGet.bind(this);
|
||||
}
|
||||
|
||||
if (this.setter) {
|
||||
obj[toAsyncName('set', name)] = this.asyncSet.bind(this);
|
||||
}
|
||||
obj[toAsyncName('get', name)] = this.asyncGet.bind(this);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -3224,19 +3217,6 @@ Property.prototype.get = function () {
|
|||
}));
|
||||
};
|
||||
|
||||
/**
|
||||
* Should be used to set value of the property
|
||||
*
|
||||
* @method set
|
||||
* @param {Object} new value of the property
|
||||
*/
|
||||
Property.prototype.set = function (value) {
|
||||
return RequestManager.getInstance().send({
|
||||
method: this.setter,
|
||||
params: [this.formatInput(value)]
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Should be used to asynchrounously get value of property
|
||||
*
|
||||
|
@ -3255,17 +3235,6 @@ Property.prototype.asyncGet = function (callback) {
|
|||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Should be used to asynchronously set value of property
|
||||
*
|
||||
* @method asyncSet
|
||||
* @param {Any} new value
|
||||
* @param {Function} callback
|
||||
*/
|
||||
Property.prototype.asyncSet = function (value, callback) {
|
||||
RequestManager.getInstance().sendAsync(this.formatInput(value), callback);
|
||||
};
|
||||
|
||||
module.exports = Property;
|
||||
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue