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
$(function(){
persistence.schemaSync(function(tx) {
if(persistence.loadFromLocalStorage) {
persistence.loadFromLocalStorage();
}
$(“#mobl-loading”).remove();
mobl.call(“unibase.root”, [mobl.ref(false), mobl.ref(“none”)], function() {});
});
});

Submitted by Terje Pedersen on 4 July 2011 at 08:35

On 6 July 2011 at 15:27 Terje Pedersen commented:

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


On 7 July 2011 at 08:12 Terje Pedersen commented:

Do you have any suggestion how to debug this?


On 7 July 2011 at 09:41 Zef Hemel commented:

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?


On 7 July 2011 at 09:46 Terje Pedersen commented:

Not first time, but long time since last so I can’t tell.


On 8 July 2011 at 10:25 Zef Hemel commented:

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.


On 8 July 2011 at 10:25 Zef Hemel tagged 0.4.5

On 8 July 2011 at 10:28 Terje Pedersen commented:

I hope so :) I have the first release next week of our first part of our business app.


On 8 July 2011 at 14:03 Zef Hemel closed this issue.

On 11 July 2011 at 08:33 Terje Pedersen commented:

Still same error in 0.4.5


On 20 July 2011 at 10:05 Terje Pedersen commented:

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