Ad
  • Default User Avatar

    Please google "closure" and you should be more clear on what he have done here. This "once" function is returning another function. The call variable is set to true the first time in "once" and it will not be set back to true again since we are calling the returned function not the "once" function in the main program.

  • Default User Avatar

    Nope it is not required