JSFiddle - React, Tailwind, and code Playground
by jcreamer898
HTML
<script src="http://underscorejs.org/underscore.js"></script>
<script src="http://backbonejs.org/backbone.js"></script>
<script src="https://raw.github.com/postaljs/postal.js/master/lib/browser/postal.js"></script>
<script src="https://gist.github.com/raw/465c5bce19e970bdc66b/abdae31ef4e3bc48260b83ac3a9ad1f2a9f256df/MsgViewStuff.js"></script>
JavaScript
postal.addWireTap(function(d, e) {
$('body').append("<div><pre>" + JSON.stringify(e, null, 4) + "</pre></div>");
});
view = new (MyView.extend({
subscriptions: {
'onCreateCourseSuccess': 'comm create.course.success',
'onEditCourseSuccess': 'comm edit.course.success'
},
publications: {
editCourse: 'comm edit.course',
createCourse: 'comm create.course'
},
onCreateCourseSuccess: function(d, e) {
console.log("onCreateCourseSuccess");
},
onEditCourseSuccess: function(d, e) {
console.log("onEditCourseSuccess");
}
}));