This commit is contained in:
Max Lynch
2015-05-11 16:15:39 -05:00
parent 055c0dfe39
commit 85cd7ff629
2 changed files with 8 additions and 4 deletions

View File

@ -10,6 +10,7 @@ let platformMode = Platform.getMode();
export class IonicComponent {
constructor(ComponentClass, {
properties,
bind,
enhanceRawElement,
delegates,
@ -19,6 +20,8 @@ export class IonicComponent {
ComponentClass.config = this
this.componentCssName = util.pascalCaseToDashCase(ComponentClass.name)
this.properties = properties || (properties = {});
this.bind = bind || (bind = {})
for (let attrName in bind) {
let binding = bind[attrName]
@ -86,6 +89,7 @@ export class IonicComponent {
}
return {
properties: this.properties,
getDelegate(delegateName) {
let cases = (config.delegates || {})[delegateName] || [];
for (let i = 0; i < cases.length; i++) {