Find file History
tjgq Remove the `stage` argument from the Layer constructor.
Storing a reference to a stage in a layer is problematic, because it is
not kept in sync: the user must still add the layer into the stage, and
there is no way to update the reference if the layer is removed from the
stage or added into a different stage. Therefore, calling Layer#stage()
offers no guarantee that the return value is correct.

Since a layer is an otherwise immutable data structure, it seems sensible
to remove the stage reference entirely. Unfortunately, this is a breaking
change for clients that instantiate Layer directly.
Latest commit 7c55c85 Oct 29, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
WakeLock.js Initial commit for open source release Feb 22, 2016
index.html Initial commit for open source release Feb 22, 2016
index.js Remove the `stage` argument from the Layer constructor. Oct 29, 2018
style.css Initial commit for open source release Feb 22, 2016