Skip to content

Commit

Permalink
move behavior definition to before usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliott Marquez committed Apr 17, 2018
1 parent ec36165 commit 09b11fa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/unit/property-effects-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,14 @@ Polymer({
invocations.push('propagate');
}
});
var TranslateBehavior = {
properties: {
translateMessage: {
type: Function,
computed: '_computeTranslateFn(translator)'
}
}
};
Polymer({
_template: html`
<div id="check">[[translateMessage('Hello World.')]]</div>
Expand All @@ -706,14 +714,6 @@ Polymer({
};
}
});
var TranslateBehavior = {
properties: {
translateMessage: {
type: Function,
computed: '_computeTranslateFn(translator)'
}
}
};
Polymer({
_template: html`
<div id="check">[[translateMessage(message)]]</div>
Expand Down

0 comments on commit 09b11fa

Please sign in to comment.