-
6 Jan 2013 4:20 AM #1
Cannot call method setMasked (Production build)
Cannot call method setMasked (Production build)
REQUIRED INFORMATION
Ext version tested:- Sencha Touch 2.1.0
- Chrome 23.0.1271.97
- setMasked works in development version but the build one is error. Chrome console says
INFORMATIONCode: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
Debugging already done:- none
- not provided
- Ubuntu Linux
-
7 Jan 2013 8:41 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
I generated a new app with 2.1.0 GPL and added this to the titlebar in Main.js:
did a production build and it worked for me just fine.Code:items : [ { text : 'Mask', handler : function() { Ext.Viewport.setMasked(true); } } ]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.
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote