Skip to content

Instantly share code, notes, and snippets.

@froots froots/app.js
Created Feb 23, 2011

What would you like to do?
Simple test case demonstrating issue 228 for documentcloud/backbone
var AppView = Backbone.View.extend({
display: function(text) {
var AppController = Backbone.Controller.extend({
initialize: function() {
this.view = new AppView();
routes: {
"": "index",
"foo": "foo"
index: function() {
foo: function() {
var controller = new AppController();
<!doctype html>
<li><a href="#">Index route</a></li>
<li><a href="#foo">Foo route - doesn't work on IE7</a></li>
<div id="app"></div>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src="app.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.