DoclerLabs / hexMachina

Releases, issues, documentation, website of hexMachina, framework written in Haxe
http://hexmachina.org
MIT License
44 stars 8 forks source link

MappingChecker - __map() should be added after super() #228

Closed aliokan closed 7 years ago

aliokan commented 7 years ago

Now MappingChecker push __map call at the beginning of constructor. That could be a problem, when _injector is instancied in super(), like in hex.module.Module class.

public function new( serviceMapping : MappingDefinition, viewMapping : MappingDefinition ) 
{
    super();
var todomvc_module_TodoModule = function(serviceMapping,viewMapping) {
    var __injectInto__ = this.__map([serviceMapping]);
    __injectInto__ = this.__map([viewMapping],__injectInto__);
    this.__injectInto(__injectInto__);
    hex_module_Module.call(this);
aliokan commented 7 years ago

fix in https://github.com/DoclerLabs/hexMachina/releases/tag/0.23.0