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

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

Open
xiao8xiao1 opened this issue Jul 28, 2018 · 0 comments
Open

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

xiao8xiao1 opened this issue Jul 28, 2018 · 0 comments

Comments

@xiao8xiao1
Copy link

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;

},
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant