diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2018-10-09 00:22:09 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2018-10-09 00:22:09 -0700 |
commit | 1e851e014c8b71d3d14e5f1770b5207521e6b52a (patch) | |
tree | 76725d914d85fd06bb7a527be84ac707312483e3 | |
parent | c11d0dcaf93464cad6f21ff05fe8a2ffc9cf0564 (diff) |
Remove un-used intro code
-rw-r--r-- | presentation/src/demos/intro.js.example | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/presentation/src/demos/intro.js.example b/presentation/src/demos/intro.js.example deleted file mode 100644 index 2374142..0000000 --- a/presentation/src/demos/intro.js.example +++ /dev/null @@ -1,38 +0,0 @@ -/** - * TODO Stop randomly mixing JavaScripts 6 (yes seriously, 6) - * different ways to declare a function - */ -const Aircraft = { - /** - * TODO implement the part where we avoid - * a crash (units in the field aren't doing - * well) - */ - dont: function() { - console.log('all safe') - }, - /** - * TODO improve crash detection - * (works about 50% of the time - * right now so it's not urgent) - */ - goingToCrash: () => { - return Math.random() >= 0.5 - }, - fly() { - setInterval(() => { - if (this.goingToCrash()) { - this.dont() - } - }, 1000) - } -} - -const Rocket = Object.assign({}, Aircraft, { - takeOff: function() { - // TODO rocket stuff - this.fly() - } -}) - -Rocket.takeOff() |