Pony.fm/public/scripts/app/directives/progress-bar.coffee
2013-08-01 03:57:08 -05:00

5 lines
No EOL
188 B
CoffeeScript

angular.module('ponyfm').directive 'pfmProgressBar', () ->
(scope, element, attrs) ->
scope.$watch attrs.pfmProgressBar, (val) ->
return if !val?
$(element).css 'width', val + '%'