7

Just wasted 30 mins of my life wondering where the fuck this bug is coming from. This is why i fucking hate javascript.

Comments
  • 1
    Can you explain? I'm not a full time js dev but always want to know about stuff like this...
  • 3
    @Zaphod65 I am immediatly invoking the reportBug function instead of just passing the function. Take a look at the end of the line "reportBug ()".
  • 3
    @jamiek94 ahhhhh, right, catch accepts a callback. Gotcha, thanks! ^_^
  • 1
    Also not returning the promise, so whatever runs after this might not actually wait for initial to finish all its promises
  • 2
    I see your problem. You trust promises :D
  • 0
    Is there no way to use breakpoints on JavaScript code? At least the node js backend code, I use xdebug for php and it's super helpful
  • 0
    @jonnyserra Not really, this is an Ionic application which runs on a virtual machine.
Add Comment