mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-23 12:18:45 -04:00
get styles directly from _style object rather than passing through getters on Item.
This commit is contained in:
parent
da670b4171
commit
c8c47bf641
1 changed files with 1 additions and 1 deletions
|
@ -746,7 +746,7 @@ var Path = this.Path = PathItem.extend({
|
||||||
|
|
||||||
_setStyles: function(ctx) {
|
_setStyles: function(ctx) {
|
||||||
for (var i in styles) {
|
for (var i in styles) {
|
||||||
var style = this[i]();
|
var style = this._style[i]();
|
||||||
if (style)
|
if (style)
|
||||||
ctx[styles[i]] = style;
|
ctx[styles[i]] = style;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue