bonjour
Comment fait on pour modifier le this d'une fonction de callBack?
par exemple :
merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 //méthode init de la classe maClasse init : function(){ //this => objet instancié de maClasse if(window.navigator.geolocation){ window.navigator.geolocation.getCurrentPosition(function(position){ //this => PAS objet instancié de maClasse //comment faire pour que ce soit le cas }); } }
Partager