meteorhacks/flow-components

component.prototype. functions not accessible inside content blocks

pahans opened this issue · 2 comments

I have following nested components inside my code

{{#render component="loading" isLoading=stateFn$isProfileLoading}}
  {{>render component="hbar"
    onSelect=action$onHarbarSelect
  }}
{{/render}}

when action onHarbarSelect is triggered

component.prototype.getSortedValueType = function () {
   ...
};

component.action.onHarbarSelect = function(id) {
  console.log(this.getSortedValueType)
};

console.log about prints undefined for above code. without the content block its working fine.

Okay. Seems like contentBlock and scope issue. It'll have a check.

Fixed with 3ee61d2