-
-
Save ded/1231184 to your computer and use it in GitHub Desktop.
ender | backbone
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
ender build backbone |
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
<!DOCTYPE HTML> | |
<html lang="en-us"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>ender | backbone</title> | |
<script src="ender.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
var Backbone = require('backbone') | |
, _ = require('underscore') | |
, object = {}; | |
_.extend(object, Backbone.Events); | |
object.bind("alert", function(msg) { | |
alert("Triggered " + msg); | |
}); | |
object.trigger("alert", "an event"); | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
one of the biggest points of using Backbone is Backbone.sync/Backbone.Model.sync. Does
ender build backbone
also overwrite Backbone.sync to work with reqwest?