Results 1 to 2 of 2

Thread: [2.1] Overriding singleton not working

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Vote Rating

    Default [2.1] Overriding singleton not working

    I'm getting the same error as in this bug report from March which was reported as fixed:

    Uncaught TypeError: Object [object Object] has no method 'override'
    File: sencha-touch.js:6597
    Line: this.get(overriddenClassName).override(data);

    Test case:
    Ext.define('App.override.util.Format', {
        override: 'Ext.util.Format'
    My work around for now:
    Ext.define('App.override.util.Format', {
    }, function () {
        var date_without_override =;
        = function (value, format) {
            ... // my override code
            return date_without_override(value, format);

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    That post wasn't marked as fixed, it was closed due to this statement from Jamie:

    Quote Originally Posted by Jamie Avins View Post
    Thank you for the report. You should be able to just directly change that singleton instance as a workaround until we resolve that.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts