Kmils21
6.04.2015, 17:17:26
Witam mam coś takiego
var klasa = function(){
this.start = function(){
}
this.end = function(){
}
}
chcę w funkcji start wywołać funkcję end. Dawno nie robiłen nic w js i staram sobie przypomnieć takie szczegóły.
Kmils21
6.04.2015, 17:53:06
teraz mam cos takiego
var obj = {
test : $(".test");
start: = function() {this.test.click(function(){
this.end();
})},
end : function(){}
}
end nie działa, bo this jest dziedziczone z eventu jquery, jakieś rady ?