-
13 Dec 2012 5:08 AM #1
[2.1] Overriding singleton not working
[2.1] Overriding singleton not working
I'm getting the same error as in this bug report from March which was reported as fixed:
http://www.sencha.com/forum/showthread.php?185360
Error:
Uncaught TypeError: Object [object Object] has no method 'override'
File: sencha-touch.js:6597
Line: this.get(overriddenClassName).override(data);
Test case:
My work around for now:Code:Ext.define('App.override.util.Format', { override: 'Ext.util.Format' });
Code:Ext.define('App.override.util.Format', { }, function () { var date_without_override = Ext.util.Format.date; Ext.util.Format.date = function (value, format) { ... // my override code return date_without_override(value, format); }; });Owner of 360releases Ltd. - Sencha Touch & Ext JS consulting
twitter.com/steffenhiller
extjswithrails.com, senchatouchbits.com
-
13 Dec 2012 6:04 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 435
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote