divnix / POP

Pure Object Prototypes
MIT License
20 stars 1 forks source link

feat: add visibility api to control unpop #10

Closed Pacman99 closed 1 year ago

Pacman99 commented 2 years ago

use to generalize meta and make it invisible

The default visibility of every attribute is visible. You can set that attributes name to false to cause it to be removed when unpopped. A later pop can set it to true to make it visible again.

Pacman99 commented 1 year ago

Updated to just add visibility api and not __unpop__. Also switched back to topProto and put that actually at the top.

So this PR is a lot simpler, it just adds the visibility api and changes the unpop function to respect it.

Pacman99 commented 1 year ago

Don't really have need for functionality anymore