This commit is contained in:
Marek Kotewicz 2015-05-12 08:28:27 +02:00
parent 80c0792e79
commit cd0df61068
6 changed files with 10 additions and 74 deletions

33
dist/web3-light.js vendored
View File

@ -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

33
dist/web3.js vendored
View File

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

4
dist/web3.js.map vendored

File diff suppressed because one or more lines are too long

5
dist/web3.min.js vendored

File diff suppressed because one or more lines are too long