by using "var bool = true;"you made "bool" local to your callback and not to
your "checkIfUsername"
so "checkIfUsername" does not have a reference of bool you have to make bool
local to checkIfUsername so you first declare "var bool" in checkIfUsername,
then allow your callback to assign it a value.

Reply via email to