rename bootstrapTravis to Travis.run

This commit is contained in:
Sven Fuchs 2013-02-27 00:29:42 +01:00
parent e338d6d2dc
commit 1fd16ef555
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,6 @@
require 'ext/jquery'
require 'ext/ember/namespace'
window.bootstrapTravis = ->
Travis.run()
if window.history.state == undefined
window.history.state = {}
oldPushState = window.history.pushState
@ -33,6 +30,9 @@ Storage = Em.Object.extend
@Travis = Em.Namespace.create Ember.Evented,
run: ->
Travis.run()
config:
api_endpoint: $('meta[rel="travis.api_endpoint"]').attr('href')
pusher_key: $('meta[name="travis.pusher_key"]').attr('value')

View File

@ -16,7 +16,7 @@
<script src="/scripts/app.js"></script>
<script>
minispade.require('travis')
bootstrapTravis()
Travis.run()
</script>
</head>
<body id="home"></body>