diff --git a/assets/scripts/app/views/build.coffee b/assets/scripts/app/views/build.coffee index ae7c9fdf..85929026 100644 --- a/assets/scripts/app/views/build.coffee +++ b/assets/scripts/app/views/build.coffee @@ -1,9 +1,14 @@ -Travis.reopen - BuildView: Travis.View.extend +require 'helpers/helpers' + +colorForState = Travis.Helpers.colorForState + +View = Travis.View.extend classNameBindings: ['color', 'loading'] buildBinding: 'controller.build' loadingBinding: 'controller.loading' color: (-> - Travis.Helpers.colorForState(@get('build.state')) + colorForState(@get('build.state')) ).property('build.state') + +Travis.BuildView = View