Release
I have a showstopper for using the release version of my app
Uncaught TypeError: undefined is not a function
Uncaught TypeError: Object # has no method ‘ref’// the last on is the mobl.call line in this code on the index.html
Submitted by Terje Pedersen on 4 July 2011 at 08:35
$(function(){
persistence.schemaSync(function(tx) {
if(persistence.loadFromLocalStorage) {
persistence.loadFromLocalStorage();
}
$(“#mobl-loading”).remove();
mobl.call(“unibase.root”, [mobl.ref(false), mobl.ref(“none”)], function() {});
});
});
Issue Log
The last error message also says:
(anonymous function)/uni24m/mr/:31
a.schemaSyncunibase.js:1
funibase.js:1
a.asyncForEachunibase.js:1
gunibase.js:1
a.schemaSyncunibase.js:1
a.schemaSync.junibase.js:1
a.db.html5.connect.e.transactionunibase.js:1
Do you have any suggestion how to debug this?
Not really, this could either be an UglifyJS bug, or a mobl bug where it concatenates the generated javascript files in the wrong order somehow. Is this the first time you try the release build, or do you know what you did that resulted in this behavior?
Not first time, but long time since last so I can’t tell.
For the release of 0.4.5 (hopefully today), I’m going to replace the currently used UglifyJS with Yahoo’s YUI Compressor, which is hopefully more reliable and might magically solve this problem.
I hope so :) I have the first release next week of our first part of our business app.
Still same error in 0.4.5
The release version is now working with the special mobl version, but I can’t use it because of æøå problems https://yellowgrass.org/issue/mobl/140 for the www version its just to compile each of the .mobl files one by one but that can’t be done when using release build.
Log in to post comments