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