| OLD | NEW |
| (Empty) |
| 1 library ppw_html; | |
| 2 | |
| 3 import 'dart:async'; | |
| 4 import 'dart:html'; | |
| 5 import 'package:bot/bot.dart'; | |
| 6 import 'poppopwin.dart'; | |
| 7 import 'platform_target.dart'; | |
| 8 | |
| 9 part 'src/html/high_score_view.dart'; | |
| 10 part 'src/html/game_view.dart'; | |
| 11 part 'src/html/game_storage.dart'; | |
| 12 part 'src/html/game_manager.dart'; | |
| 13 | |
| 14 PlatformTarget _platformImpl; | |
| 15 | |
| 16 void initPlatform(PlatformTarget value) { | |
| 17 assert(value != null); | |
| 18 assert(!value.initialized); | |
| 19 assert(_platformImpl == null); | |
| 20 _platformImpl = value; | |
| 21 _platformImpl.initialize(); | |
| 22 } | |
| 23 | |
| 24 PlatformTarget get targetPlatform { | |
| 25 if(_platformImpl == null) { | |
| 26 initPlatform(new PlatformTarget()); | |
| 27 } | |
| 28 return _platformImpl; | |
| 29 } | |
| OLD | NEW |