Skip to content

Instantly share code, notes, and snippets.

@Ruxton
Created July 19, 2011 07:09
Show Gist options
  • Save Ruxton/1091538 to your computer and use it in GitHub Desktop.
Save Ruxton/1091538 to your computer and use it in GitHub Desktop.
var object = {
init: function() {
this.someFunc();
},
someFunc: function() {
console.log('Stuff');
}, // THIS TRAILING COMMA SUX ARSE
}
@dirkkelly
Copy link

var object = {

  init: function() {
    this.someFunc();
  },

  someFunc: function() {
    console.log('Stuff');
  }, // THIS TRAILING COMMA IS PERFECTLY SUITABLE BUT IE SUX ARSE
}

@Ruxton
Copy link
Author

Ruxton commented Jul 19, 2011

haha think about it though, what other language outside of javascript would allow you to add a separator when its not needed? It's bad design!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment