🏳️🌈
This file contains 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
'use strict'; | |
let Hello = function (props) { | |
return { | |
props, // set props | |
render () { |
This file contains 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
var Calculator = function(displayElement) { | |
this.$el = $(displayElement); | |
}; | |
Calculator.prototype.hideResult = function(cb) { | |
this.$el.fadeOut(1000, cb); | |
}; | |
This file contains 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
//this is using your latest marionette version v0.4.3 | |
BBAdmin.MailApp = (function(BBAdmin, Backbone){ | |
var MailApp = {}; | |
// Email Model And Collection | |
// -------------------------- | |
MailApp.Group = Backbone.Model.extend({}); |
This file contains 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
MyView = Backbone.View.extend({ | |
events: { | |
"click #someButton": "clicked" | |
}, | |
clicked: function(e){ | |
e.preventDefault(); | |
alert("I was clicked!"); | |
}, |