Skip to content
This repository was archived by the owner on May 26, 2021. It is now read-only.

the get for '_proxied_visible' not suport parent'parent #4

@xiao8xiao1

Description

@xiao8xiao1

the code should be like this:

Object.defineProperty(DisplayObject.prototype, '_proxied_visible', { // Set on proxied, as we're already observing
get: function() {

    for (var p = this.parent; typeof p !== 'undefined'; p = p.parent){
        if (!p.visible)
            return false;
    }

	return this._visible;

},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions