Skip to content

Instantly share code, notes, and snippets.

@sdesai
Created July 16, 2012 20:22
Show Gist options
  • Save sdesai/3124793 to your computer and use it in GitHub Desktop.
Save sdesai/3124793 to your computer and use it in GitHub Desktop.
var EmptyWidget = Y.Base.create('emptyWidget', Y.Widget, [], {
_fakeProperty: null, // Not actually required, but since you had it in your orig. code.
_fakeObject: null, // Not actually required, but since you had it in your orig. code.
initializer : function() {
this._fakeProperty = {};
this._fakeObject = {};
},
renderUI: function () {
this.get('contentBox').setContent(this.get('number'));
this._fakeProperty['fp1'] = '1';
this._fakeProperty['fp2'] = '2';
this._fakeProperty['fp3'] = '3';
this._fakeObject = {
fo1: '1',
fo2: '2',
fo3: '3'
};
}
}, {
ATTRS: {
number: { value: 0 }
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment