Skip to content

Instantly share code, notes, and snippets.

@MrFiregore
Created May 20, 2019 01:05
Show Gist options
  • Save MrFiregore/c01dfb3c89a76bd85325f06bd8c46104 to your computer and use it in GitHub Desktop.
Save MrFiregore/c01dfb3c89a76bd85325f06bd8c46104 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/loyazez
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js"></script>
<script id="jsbin-javascript">
var HeaderView = Backbone.View.extend({
template: _.template(""),
initialize: function () {
console.log(
_.functions(this));
_.bindAll(this);
},
events: {
"click #logout-link" : "onLogoutClick",
"click #remove-account-link" : "onRemoveAccountClick"
}
});
console.log(HeaderView);
</script>
<script id="jsbin-source-javascript" type="text/javascript">var HeaderView = Backbone.View.extend({
template: _.template(""),
initialize: function () {
console.log(
_.functions(this));
_.bindAll(this);
},
events: {
"click #logout-link" : "onLogoutClick",
"click #remove-account-link" : "onRemoveAccountClick"
}
});
console.log(HeaderView);
</script></body>
</html>
var HeaderView = Backbone.View.extend({
template: _.template(""),
initialize: function () {
console.log(
_.functions(this));
_.bindAll(this);
},
events: {
"click #logout-link" : "onLogoutClick",
"click #remove-account-link" : "onRemoveAccountClick"
}
});
console.log(HeaderView);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment