widget.kickOffPromiseToUpdateTextArea();
var loop = function(){
var textarea = widget.ourTextArea;
var characterCount = textarea.innerHTML.length;
if (characterCount != 0) {
clearInterval(interval);
alert('made it!');
goDoSomethingElseWithFeedBack(textarea.innerHTML);
} else {
alert('not yet!');
}
};
var interval = setInterval(loop, 6000);
No comments:
Post a Comment