Skip to content

Instantly share code, notes, and snippets.

@hellosmithy
Created July 28, 2014 14:26
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 hellosmithy/ef0228b23906fabd3b82 to your computer and use it in GitHub Desktop.
Save hellosmithy/ef0228b23906fabd3b82 to your computer and use it in GitHub Desktop.
Marionette `serializeData` override
serializeData: function() {
// call the original
var data = Marionette.View.prototype.serializeData.apply(this, arguments);
// add new data
data.whatever = myChannel.request('whatever');
return data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment