Permalink
Browse files

reorg: Removed 'injectable' from ViewFactory

  • Loading branch information...
MikeMitterer committed Nov 9, 2017
1 parent 2e99ca1 commit b34d9c0246d55f0595fd8a0d5af52b59f2c4fac9
Showing with 8 additions and 2 deletions.
  1. +4 −1 lib/mdlapplication.dart
  2. +4 −1 lib/src/application/modules/ViewFactory.dart
@@ -74,7 +74,10 @@ class MdlModule extends di.Module {
register(DomRenderer);
register(EventCompiler);
register(ViewFactory);
// Removed 2017.11.9 - because injection should'nt be necessary with ViewFactory
// More infos: [ViewFactory]
// register(ViewFactory);
register(RootScope);
register(ActionBus).toType(ActionBusImpl);
@@ -38,8 +38,11 @@ part of mdlapplication;
*
* router.listen();
* }
*
* Until 2017.11.09 ViewFactory was "injectable". This should not be necessary.
* Changing the ViewFactory to a individual version should be very easy without DI.
* See example from above
*/
@di.injectable
class ViewFactory {
final Logger _logger = new Logger('mdlremote.ViewFactory');

0 comments on commit b34d9c0

Please sign in to comment.