Skip to content

Commit

Permalink
fix(all): improve metadata dsl
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 22, 2015
1 parent feb3f4d commit 0ce71d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export {CompositionEngine} from './composition-engine';
Metadata.configure.classHelper('withProperty', BehaviorProperty);
Metadata.configure.classHelper('withOptions', OptionsProperty);
Metadata.configure.classHelper('attachedBehavior', AttachedBehavior);
Metadata.configure.classHelper('observeChildren', ChildObserver);
Metadata.configure.classHelper('syncChildren', ChildObserver);
Metadata.configure.classHelper('customElement', CustomElement);
Metadata.configure.classHelper('useShadowDOM', UseShadowDOM);
Metadata.configure.classHelper('elementConfig', ElementConfig);
Expand Down
6 changes: 3 additions & 3 deletions src/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ export class BehaviorProperty {
this.defaultBindingMode = defaultBindingMode || ONE_WAY;
}

defaultBindingIsTwoWay(){
bindingIsTwoWay(){
this.defaultBindingMode = TWO_WAY;
return this;
}

defaultBindingIsOneWay(){
bindingIsOneWay(){
this.defaultBindingMode = ONE_WAY;
return this;
}

defaultBindingIsOneTime(){
bindingIsOneTime(){
this.defaultBindingMode = ONE_TIME;
return this;
}
Expand Down

0 comments on commit 0ce71d7

Please sign in to comment.