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
getName: function(){while(!me.myName){me.myName=prompt('What is your name?');}},
But getName never fires if the local storage value hasn't been already set. I would expect that getName always fires, as soon as the value has been fetched, even if the value is undefined.
As originally I had the following in the ready event:
while ( !me.myName ) {
me.myName = prompt('What is your name?');
}
But the localstorage element hadn't fetched the value yet, so I tried to use the load event instead, but to the same failure.
The text was updated successfully, but these errors were encountered:
I have this code:
But getName never fires if the local storage value hasn't been already set. I would expect that getName always fires, as soon as the value has been fetched, even if the value is undefined.
As originally I had the following in the ready event:
But the localstorage element hadn't fetched the value yet, so I tried to use the load event instead, but to the same failure.
The text was updated successfully, but these errors were encountered: