All functions are firing twice

3 posts, 0 answers
  1. Akhil
    Akhil avatar
    4 posts
    Member since:
    Jan 2015

    Posted 16 Jan 2015 Link to this post

    I'm not sure if this is an issue with my code or a bug with NativeScript - but all of my functions are firing twice. I.e. I have a function that sends an email to clients and then creates a dialog asking for a confirmation code. Two emails are being sent and two dialogs are appearing (one after another). Is anyone else experiencing this?
  2. Akhil
    Akhil avatar
    4 posts
    Member since:
    Jan 2015

    Posted 16 Jan 2015 Link to this post

    Resolved: I realized that my pageLoad function (which fires when the page is loaded) was firing twice, and so all of the functions chained to this were firing twice as well. I found a way around this by setting a global variable firstCall to true initially, and then set it to false the first time the pageLoad function is called, thereby preventing it from firing again.
  3. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 19 Jan 2015 Link to this post

    Hi,

    This issue is already resolved (page load fired twice) and you will not have such problems with our next version!

    Regards,
    Vlad
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top