mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 22:01:58 -05:00
Item: clean up white space.
This commit is contained in:
parent
0d4517c77f
commit
8a113a1c84
1 changed files with 4 additions and 4 deletions
|
@ -252,7 +252,7 @@ var Item = this.Item = Base.extend({
|
||||||
*/
|
*/
|
||||||
isEditable: function() {
|
isEditable: function() {
|
||||||
var parent = this;
|
var parent = this;
|
||||||
while(parent) {
|
while (parent) {
|
||||||
if (parent.hidden || parent.locked)
|
if (parent.hidden || parent.locked)
|
||||||
return false;
|
return false;
|
||||||
parent = parent.parent;
|
parent = parent.parent;
|
||||||
|
@ -333,7 +333,7 @@ var Item = this.Item = Base.extend({
|
||||||
*/
|
*/
|
||||||
isDescendant: function(item) {
|
isDescendant: function(item) {
|
||||||
var parent = this.parent;
|
var parent = this.parent;
|
||||||
while(parent) {
|
while (parent) {
|
||||||
if (parent == item)
|
if (parent == item)
|
||||||
return true;
|
return true;
|
||||||
parent = parent.parent;
|
parent = parent.parent;
|
||||||
|
@ -358,7 +358,7 @@ var Item = this.Item = Base.extend({
|
||||||
*/
|
*/
|
||||||
isAncestor: function(item) {
|
isAncestor: function(item) {
|
||||||
var parent = item.parent;
|
var parent = item.parent;
|
||||||
while(parent) {
|
while (parent) {
|
||||||
if (parent == this)
|
if (parent == this)
|
||||||
return true;
|
return true;
|
||||||
parent = parent.parent;
|
parent = parent.parent;
|
||||||
|
@ -374,7 +374,7 @@ var Item = this.Item = Base.extend({
|
||||||
*/
|
*/
|
||||||
isGroupedWith: function(item) {
|
isGroupedWith: function(item) {
|
||||||
var parent = this.parent;
|
var parent = this.parent;
|
||||||
while(parent) {
|
while (parent) {
|
||||||
// Find group parents. Check for parent.parent, since don't want
|
// Find group parents. Check for parent.parent, since don't want
|
||||||
// top level layers, because they also inherit from Group
|
// top level layers, because they also inherit from Group
|
||||||
if (parent.parent
|
if (parent.parent
|
||||||
|
|
Loading…
Reference in a new issue