Made some minor changes.

This commit is contained in:
Scott Erickson 2014-08-13 13:45:24 -07:00
parent e3088ad813
commit f9e8bfad9f
3 changed files with 4 additions and 3 deletions

View file

@ -25,7 +25,7 @@ DEMO_URL_PREFIX = '/demo/'
### ###
module.exports = DemoView = class DemoView extends RootView module.exports = DemoView = class DemoView extends RootView
id: "demo-view" id: 'demo-view'
template: template template: template
# INITIALIZE # INITIALIZE

View file

@ -18,7 +18,6 @@ module.exports = class RelatedAchievementsView extends CocoView
@level = options.level @level = options.level
@relatedID = @level.id @relatedID = @level.id
@achievements = new RelatedAchievementsCollection @relatedID @achievements = new RelatedAchievementsCollection @relatedID
console.debug @achievements
@supermodel.loadCollection @achievements, 'achievements' @supermodel.loadCollection @achievements, 'achievements'
onLoaded: -> onLoaded: ->

View file

@ -92,10 +92,12 @@ describe 'CocoModel', ->
request = jasmine.Ajax.requests.mostRecent() request = jasmine.Ajax.requests.mostRecent()
expect(request).toBeUndefined() expect(request).toBeUndefined()
describe 'Achievement polling', -> xdescribe 'Achievement polling', ->
NewAchievementCollection = require 'collections/NewAchievementCollection' NewAchievementCollection = require 'collections/NewAchievementCollection'
EarnedAchievement = require 'models/EarnedAchievement' EarnedAchievement = require 'models/EarnedAchievement'
# TODO: Figure out how to do debounce in tests so that this test doesn't need to use keepDoingUntil
it 'achievements are polled upon saving a model', (done) -> it 'achievements are polled upon saving a model', (done) ->
#spyOn(CocoModel, 'pollAchievements') #spyOn(CocoModel, 'pollAchievements')
Backbone.Mediator.subscribe 'achievements:new', (collection) -> Backbone.Mediator.subscribe 'achievements:new', (collection) ->