0
С учетом следующего JS-кода:Рекурсивный метод с OOJS
+ -------------------------------- ------------- +
this.Element = function() {
this.twitch = function(e) {
$(e).animate({
height: "+=5"
}, 1000, function() {
$(e).animate({
height: "-=5"
}, 1000, function() {
});
});
};
$(document).ready(function() {
var footer = new this.Element();
footer.twitch("#footer");
});
+ ---------------------------- ----------------- +
Как я могу назвать метод "twitch()" рекурсивно?
спасибо.