Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wizard04wsu authored Mar 5, 2019
1 parent 21dde13 commit 305bdfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let Square = Rectangle.extend({
className:"Square",
constructorFn:function (Super, width){
Super(width, width);
Object.defineProperty(this, "height", { get:function (){ return this.width; }, set:function (val){ this.height = this.width = val; }, enumerable:true, configurable:true });
Object.defineProperty(this, "height", { get:function (){ return this.width; }, set:function (val){ this.height = this.width = val||0; }, enumerable:true, configurable:true });
},
returnFn:function (width){
return Math.pow(width||0, 2);
Expand Down

0 comments on commit 305bdfa

Please sign in to comment.