Created
July 16, 2012 20:22
-
-
Save sdesai/3124793 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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