Skip to content

Instantly share code, notes, and snippets.

@thomsbg
Created September 11, 2013 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomsbg/6527085 to your computer and use it in GitHub Desktop.
Save thomsbg/6527085 to your computer and use it in GitHub Desktop.
Global settings object
defaults: {
ajaxTimeout: 15000,
autoUpdateAlertTimeShown: 6500,
editTimeWindow: 90,
maxIndentationDepth: 30,
showAutoUpdateAlert: true,
showAvatars: true,
showSignatures: true,
showImages: true,
sortMethod: 'ancestry'
},
settings: {},
initialize: function(options) {
this.settings = _.extend({}, this.settings, this.defaults, options);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment