Skip to content

Commit

Permalink
Hash.set returns the setted value
Browse files Browse the repository at this point in the history
  • Loading branch information
RStankov committed Feb 17, 2010
1 parent dcdb5eb commit e7b9b8f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/dom/layout.js
Expand Up @@ -340,10 +340,7 @@
if (!(property in COMPUTATIONS)) {
throw "Property not found.";
}

var value = COMPUTATIONS[property].call(this, this.element);
this._set(property, value);
return value;
return this._set(property, COMPUTATIONS[property].call(this, this.element));
},

/**
Expand Down

0 comments on commit e7b9b8f

Please sign in to comment.