flowerbox/lib/assets/javascripts/flowerbox.js.coffee
2012-03-24 10:17:33 -04:00

23 lines
380 B
CoffeeScript

#= require_self
#= require flowerbox/result
#= require flowerbox/exception
#
Flowerbox =
debug: false
ping: ->
Flowerbox.contact('ping')
contact: (url, data...) ->
Flowerbox.started = true
if !Flowerbox.debug
Flowerbox.socket.send(JSON.stringify([ url, data ]))
Flowerbox.done = true if url == 'results'
started: false
done: false
fail: ->