AnsweredAssumed Answered

Aikau sleep wait method

Question asked by redraccoon on Mar 30, 2017
Latest reply on Mar 31, 2017 by redraccoon



I would like to have a sleep method in my aikau widget


navigateTo : function com_widget__navigateTo(urlToGo){
setTimeout(function() {


                                 },1000) ;



but it's not working, I have an error that say "this.myMethod doesn't exist"


It's not working only when I call my method inside the setTimeout function ... so as you can see I put two console.log(this) to see the problem, and they are not related to the same "this" wich I don't understand



the object is "this" in the widget and the window is "this" inside the method