Pourquoi j'ai cette erreur
TypeError: this.closeLvl is not a function : this.closeLvl();
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 jQuery(document).ready(function($) { var myLvlManager = new lvlManager(); myLvlManager.openLvlId("activites"); } var lvlManager = function(){ var nbLvlOpen = 1; this.openLvlId = function(idToOpen){ var nbLvlToOpen = 1; this.closeLvl(); }; this.closeLvl = function(){ alert("close"); }; }
Partager