mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-14 00:39:57 -04:00
Make style setter calls chainable.
This commit is contained in:
parent
2c034475b0
commit
8be1041011
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@ var PathStyle = this.PathStyle = Base.extend(new function() {
|
|||
} else {
|
||||
this['_' + key] = isColor ? Color.read(arguments) : value;
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
fields[get] = function() {
|
||||
|
@ -53,6 +54,7 @@ var PathStyle = this.PathStyle = Base.extend(new function() {
|
|||
|
||||
this[set] = function(value) {
|
||||
this._style[set](value);
|
||||
return this;
|
||||
};
|
||||
|
||||
this[get] = function() {
|
||||
|
|
Loading…
Reference in a new issue