mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Rename private move() -> insert(), to reflect recent name changes.
This commit is contained in:
parent
bbcec27031
commit
7d2f10f22b
1 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ var Layer = this.Layer = Group.extend({
|
||||||
this._project.activeLayer = this;
|
this._project.activeLayer = this;
|
||||||
}
|
}
|
||||||
}, new function () {
|
}, new function () {
|
||||||
function move(above) {
|
function insert(above) {
|
||||||
return function(item) {
|
return function(item) {
|
||||||
// If the item is a layer and contained within Project#layers, use
|
// If the item is a layer and contained within Project#layers, use
|
||||||
// our own version of move().
|
// our own version of move().
|
||||||
|
@ -105,8 +105,8 @@ var Layer = this.Layer = Group.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
insertAbove: move(true),
|
insertAbove: insert(true),
|
||||||
|
|
||||||
insertBelow: move(false)
|
insertBelow: insert(false)
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue