mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-10-29 02:30:05 +00:00
Lots of stuff
This commit is contained in:
4
client/app/js/initializers/index.coffee
Normal file
4
client/app/js/initializers/index.coffee
Normal file
@@ -0,0 +1,4 @@
|
||||
@PokeBattle ?= {}
|
||||
PokeBattle.battles = null
|
||||
PokeBattle.events = {}
|
||||
_.extend(PokeBattle.events, Backbone.Events)
|
||||
3
client/app/js/initializers/loading_message.coffee
Normal file
3
client/app/js/initializers/loading_message.coffee
Normal file
@@ -0,0 +1,3 @@
|
||||
PokeBattle.events.once "ready", ->
|
||||
$loading = $(".loading-container")
|
||||
$loading.fadeOut(-> $loading.remove())
|
||||
@@ -0,0 +1,3 @@
|
||||
# This is turned off by default, due to performance reasons.
|
||||
# But we'd like to listen to this event for the teambuilder.
|
||||
Backbone.Associations.EVENTS_NC = true
|
||||
Reference in New Issue
Block a user