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.
29 lines
623 B
29 lines
623 B
function Testing(req) {
|
|
this.name = req.params.name;
|
|
tts.when([this.loadLeft(), this.loadRight()]).then(val=>{
|
|
alert("All DOne");
|
|
});
|
|
}
|
|
|
|
/* Redirect user if no hash tag was found */
|
|
if (location.hash == '') {
|
|
location.hash = '#Hello';
|
|
}
|
|
|
|
tts.DoCacheAssets = false;
|
|
tts.Router.get('Testing/:name', function(req) {
|
|
tts.getAsset({name: 'testing.js', path: ajax_folder}).then(val=>{
|
|
var obj = new Testing(req);
|
|
});
|
|
});
|
|
|
|
tts(function() {
|
|
/*
|
|
let dp = new tts.DeferredPromise();
|
|
dp.then(val=>{
|
|
alert(val.name);
|
|
});
|
|
dp.resolve({name: 'Luke'});
|
|
*
|
|
*/
|
|
}); |