Polymer custom behavior generates lint error -
i have created custom behavior extends applocalizebehavior:
var jm = window.jm || {}; jm.applocalizebehavior = { properties: { myvar: string, value: 'a string' } } jm.applocalizebehavior = [polymer.applocalizebehavior, jm.applocalizebehavior];
my component imports behavior: ... behaviors: [jm.applocalizebehavior] ...
and dom-module has binding: [[localize('hello','name','john')]]
when run polymer lint
error: computed binding method 'localize' not defined on element '...'
when change name jm.localizebehavior
additionally: behavior jm.localizebehavior not found when mixing properties ...
using default polymer.applocalizebehavior not generate lint error.
what need add code prevent linting errors?
Comments
Post a Comment