- Joined
- Oct 11, 2015
- Messages
- 424
- Reaction score
- 171
- First Language
- Dutch
- Primarily Uses
- RMMV
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?
