This does not work
MM_POI.prototype.makeSaveContents = function(){ return { id :this.id, name :this.name // <<< SyntaxError: Unexpected token : };};This does:
MM_POI.prototype.makeSaveContents = function(){ return { id :this.id, name :this.name };};The only difference is 1 line vs several lines. No difference in code. I even kept the spaces intact. Why is this?
MM_POI.prototype.makeSaveContents = function(){ return { id :this.id, name :this.name // <<< SyntaxError: Unexpected token : };};This does:
MM_POI.prototype.makeSaveContents = function(){ return { id :this.id, name :this.name };};The only difference is 1 line vs several lines. No difference in code. I even kept the spaces intact. Why is this?