When I run my app there is an error `
"Uncaught TypeError: object is not a function", source: file:///android_asset/www/js/controller.js (2)
I have a class model.js :
var posAttuale = {
myLat : "myLat",
myLng : "myLng",
myComune : "myComune"
};
and a class controller.js :
var infoPos = new posAttuale; //Error is here
//....rest of program....
How can I fix the error?
`
newon it