Showing the changes to tutorial/tutorial.js (1 of 1 file). Show all
Unified · Split
| @@ -415,29 +415,6 @@ stepEnableControllers.prototype = { · 414 unmodified lines | ||
| 415 | 415 | } |
| 416 | 416 | }; |
| 417 | 417 | |
| 418 | −/////////////////////////////////////////////////////////////////////////////// | |
| 419 | −/////////////////////////////////////////////////////////////////////////////// | |
| 420 | −// // | |
| 421 | −// STEP: Welcome // | |
| 422 | −// // | |
| 423 | −/////////////////////////////////////////////////////////////////////////////// | |
| 424 | −var stepWelcome = function(name) { | |
| 425 | − this.tag = name; | |
| 426 | −} | |
| 427 | −stepWelcome.prototype = { | |
| 428 | − start: function(onFinish) { | |
| 429 | − this.timerID = Script.setTimeout(onFinish, 8000); | |
| 430 | − showEntitiesWithTag(this.tag); | |
| 431 | − }, | |
| 432 | − cleanup: function() { | |
| 433 | − if (this.timerID) { | |
| 434 | − Script.clearTimeout(this.timerID); | |
| 435 | − this.timerID = null; | |
| 436 | − } | |
| 437 | − hideEntitiesWithTag(this.tag); | |
| 438 | − } | |
| 439 | −}; | |
| 440 | − | |
| 441 | 418 | |
| 442 | 419 | /////////////////////////////////////////////////////////////////////////////// |
| 443 | 420 | /////////////////////////////////////////////////////////////////////////////// |