Skip to content

use the good base class of method

thommignot requested to merge py2js_fix into master

Actually if we have a mixin MixinName with a py2js that call an instance method my_method, the bundle.js will create a function called MixinName__my_method

Then if we inherit from this mixin in a component MyComponent, the call to method will be transpiled to MyComponent__my_method which doesn't exist.

This patch retrieves the base class that defined my_method and transpile the calls to MixinName__my_method even if the component is a MyComponent

Merge request reports