I tried editing down one of the official plug-ins to just the required functions, but I'm getting a crash whenever I test play. Can anyone help me figure out where I've gone wrong?
(function(){
var obj = {};
obj.locale = null;
obj.getInfo = function(category){
if(category == 'name'){
return "Template";
}
else if(category == 'description'){
return "A simple plug-in template for beginners";
}
else if(category == 'author'){
return "CutePoops";
}
console.log("getInfo");
};
obj.initialize = function(settings){
console.log("initialize");
};
obj.finalize = function(){
console.log("finalize");
};
obj.setLocale = function(_locale){
obj.locale = _locale;
console.log("setLocal");
};
obj.call = function(name, param1, param2){
console.log("call");
};
obj.update = function(dt){
console.log("update");
};
return obj; }());