Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
> modified: es6/util/property.js
Browse files Browse the repository at this point in the history
>	modified:   lib/util/property.js
>	modified:   package.json
  • Loading branch information
CapCap_ghostcorn authored and CapCap_ghostcorn committed Aug 28, 2018
1 parent 4617330 commit 37c3318
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion es6/util/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Property {

propertyBuilder = () => {
if (this.messanger !== null) {
return (callback) => {
return function get(callback) {
if (callback) {
return this.messanger.sendAsync({ method: this.getter }, callback)
}
Expand Down
6 changes: 3 additions & 3 deletions lib/util/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ var Property = function Property(options) {

this.propertyBuilder = function () {
if (_this.messanger !== null) {
return function (callback) {
return function get(callback) {
if (callback) {
return _this.messanger.sendAsync({ method: _this.getter }, callback);
return this.messanger.sendAsync({ method: this.getter }, callback);
}
return _this.messanger.send({ method: _this.getter });
return this.messanger.send({ method: this.getter });
};
}
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webz.js",
"version": "0.0.18",
"version": "0.0.19",
"description": "Zilliqa Javascript Libraries",
"main": "lib/index.js",
"browser": "dist/Webz.browser.js",
Expand Down

0 comments on commit 37c3318

Please sign in to comment.