mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Rename itemProps to itemFields, for more consistency.
This commit is contained in:
parent
2c06ec965c
commit
31b595fa9e
1 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ PathStyle = Base.extend(new function() {
|
|||
}
|
||||
}
|
||||
|
||||
var itemProps = { beans: true };
|
||||
var itemFields = { beans: true };
|
||||
|
||||
Base.each(keys, function(key) {
|
||||
|
||||
|
@ -49,16 +49,16 @@ PathStyle = Base.extend(new function() {
|
|||
}
|
||||
};
|
||||
|
||||
itemProps['set' + key.capitalize()] = function(value) {
|
||||
itemFields['set' + key.capitalize()] = function(value) {
|
||||
this.style[key] = value;
|
||||
};
|
||||
|
||||
itemProps['get' + key.capitalize()] = function() {
|
||||
itemFields['get' + key.capitalize()] = function() {
|
||||
return this.style[key];
|
||||
};
|
||||
});
|
||||
|
||||
Item.inject(itemProps);
|
||||
Item.inject(itemFields);
|
||||
|
||||
return fields;
|
||||
});
|
Loading…
Reference in a new issue