I have never seen JavaScript written in this way (with a "randomword: function(){}"). What does this "randomword: function(){}" syntax actually do? Is this ECMA standards JS?
Excerpt of codiqa.ext.js below:
init: function() {
for(var type in this.types) {
this.types[type].prototype.initType();
}
},
refresh: function() {
for(var x in this.instances) {
this.instances[x].refresh && this.instances[x].refresh();
}
},
callbackInit: function() {
},
Sorry guys, the code snippet IS part of an object literal notation.
This is a duplicate question of Javascript 'colon' for labeling anonymous functions?
Question solved.