A First Look at Nokia WRT

I’m testing the Nokia WRT platfom for the first time and i’ve just found a weird issue.
On S60 3rd Edition, Feature Pack 2, the following js syntax hang the widget totally:


if(typeof(WP)=="undefined"){WP={};}
WP.Controller = {

isWidget : false,

showSplashScreen : function() {
...
...
}
}

instead this alternative syntax works fine:

if (typeof(WP)=="undefined") {

var WP = {};

WP.Controller = {};

WP.Controller.isWidget = false;

WP.Controller.init = function () {
...
}

}

mha….

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s