Created
July 28, 2014 14:26
-
-
Save hellosmithy/ef0228b23906fabd3b82 to your computer and use it in GitHub Desktop.
Marionette `serializeData` override
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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