define [
"base"
], (App) ->
App.factory 'pdfSpinner', [() ->
class pdfSpinner
constructor: () ->
# handler for spinners
add: (element, options) ->
size = 64
spinner = $('
')
spinner.css({'font-size' : size + 'px'})
element.append(spinner)
start: (element) ->
element.find('.fa-spinner').addClass('fa-spin')
stop: (element) ->
element.find('.fa-spinner').removeClass('fa-spin')
remove: (element) ->
element.find('.fa-spinner').remove()
]