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
Uncaught TypeError: Cannot read property 'replace' of undefined
at Cache.func (ember.debug.js:41546)
at Cache.get (ember.debug.js:30881)
at Object.capitalize (ember.debug.js:41770)
at ApplicationController.get foo [as foo] (about:srcdoc:35)
at getPossibleMandatoryProxyValue (ember.debug.js:14419)
at get (ember.debug.js:14485)
at ember.debug.js:46909
at runInAutotrackingTransaction (ember.debug.js:54899)
at track (ember.debug.js:55486)
at PropertyReference.value (ember.debug.js:46908)
The text was updated successfully, but these errors were encountered:
a) Accept undefined and return empty string. I like that this makes sure that invalid input does not make the consuming app explode, but is that really what should happen? Doesn't that introduce potential bugs into users code?
b) assert() a warning saying that "capitalize helper can't accept undefined as an argument" or something.
The problem
When calling
capitalize()
onundefined
:One will get a weird error:
The text was updated successfully, but these errors were encountered: