blackberry-webworks/BBX-Framework — comment on commit da1022711f91ef511cb3295a490ad66a185fd696
File: lib/public/webworks.js line 87
By dansilivestru:

Well, since the request is sync, I think it will look something like this:

var _self = {};

_self.__defineGetter__('name', function () {
var result;

webworks.exec(function (name) {
result = name;
}, null, "blackberry.app", "name", null, true);

return result;
});