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
I'm running into an issue in my project that is caused by subtle problem with the way that Box.Context and Box.TestServiceProvider are defined. The methods on those objects are set by completely replacing the prototype properties with a new object, which causes the constructor property to become Object, instead of the correct Box constructor functions.
The current code defines the methods on these object like this:
Hi T3!
I'm running into an issue in my project that is caused by subtle problem with the way that Box.Context and Box.TestServiceProvider are defined. The methods on those objects are set by completely replacing the prototype properties with a new object, which causes the constructor property to become Object, instead of the correct Box constructor functions.
The current code defines the methods on these object like this:
Because the prototype is replaced by
{}
, the constructor becomes object.The fix is simple:
I'm happy to create a PR, but just wanted to run it by you guys first for feedback.
Thanks!
Adam
The text was updated successfully, but these errors were encountered: