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
@alyec has pointed out that in many cases the reference to a DVChart object is not needed on the host page (DQV keeps track of them internally), so the calls end up like this:
This invokes the wrath of the tslint's no-unused-expression rule.
Update DQV endpoints to expose a function instead of the class, which also returns the newly constructed object. Being a simple function call, it obeys the rule and doesn't look as offensive as a snowman.
DQV.Chart({ ... });
The text was updated successfully, but these errors were encountered:
Right now, DQV exposes corresponding classes on the API which require the use of the
new
keyword:@alyec has pointed out that in many cases the reference to a DVChart object is not needed on the host page (DQV keeps track of them internally), so the calls end up like this:
This invokes the wrath of the tslint's
no-unused-expression
rule.Update DQV endpoints to expose a function instead of the class, which also returns the newly constructed object. Being a simple function call, it obeys the rule and doesn't look as offensive as a snowman.
The text was updated successfully, but these errors were encountered: