A Sample PHP Project for the tts_framework.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
511 B

Testing.prototype.Bob = function() {
let dp = new tts.DeferredPromise();
tts.when([this.loadLeft(), this.loadRight()]).then(val=>{
dp.resolve("All Done");
});
return dp;
};
Testing.prototype.loadLeft = function() {
let dp = new tts.DeferredPromise();
console.log("Left");
dp.resolve();
return dp;
};
Testing.prototype.loadRight = function() {
let dp = new tts.DeferredPromise();
dp.then(val=>{
alert(this.tab);
});
dp.resolve();
return dp;
};