Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    6
    Vote Rating
    0
    jinggovillamor is on a distinguished road

      0  

    Default Cannot call method setMasked (Production build)

    Cannot call method setMasked (Production build)


    REQUIRED INFORMATION

    Ext version tested:
    • Sencha Touch 2.1.0
    Browser versions tested against:
    • Chrome 23.0.1271.97
    Description:
    • setMasked works in development version but the build one is error. Chrome console says
    Code:
    Error evaluating http://www.local.com/build/cp/production/app.js with message: TypeError: Cannot call method 'setMasked' of undefined www.local.com:9Creating Application Cache with manifest http://www.local.com/build/cp/production/cache.appcache
    Application Cache Checking event
    Application Cache Downloading event
    Application Cache Progress event (0 of 1) http://www.local.com/build/cp/production/index.html
    Application Cache Progress event (1 of 1) 
    Application Cache Cached event
    INFORMATION

    Debugging already done:
    • none
    Possible fix:
    • not provided
    Operating System:
    • Ubuntu Linux

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    I generated a new app with 2.1.0 GPL and added this to the titlebar in Main.js:

    Code:
    items : [
        {
            text    : 'Mask',
            handler : function() {
                Ext.Viewport.setMasked(true);
            }
        }
    ]
    did a production build and it worked for me just fine.
    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.