You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This seems buggy since LinkedElement has no setter/mutation methods// So shouldn't it inherit like everything else?
classLinkedElementextendsPhetioObject{publicreadonlyelement: LinkableElement;publicconstructor(coreElement: LinkableElement,providedOptions?: LinkedElementOptions){assert&&assert(!!coreElement,'coreElement should be defined');constoptions=optionize<LinkedElementOptions,EmptySelfOptions,PhetioObjectOptions>()({phetioType: LinkedElementIO,phetioState: false},providedOptions);// References cannot be changed by PhET-iOassert&&assert(!options.hasOwnProperty('phetioReadOnly'),'phetioReadOnly set by LinkedElement');options.phetioReadOnly=true;
The text was updated successfully, but these errors were encountered:
I thought it was buggy when I thought we were going to be building out support for calling methods on linked elements and forwarding those calls to the core elements, but the "read only" part is inherent to LinkedElementIO, and I can see it making sense. What do you prefer?
From phetsims/joist#744
The text was updated successfully, but these errors were encountered: