Permalink
Browse files

whitespace

  • Loading branch information...
1 parent a368ee3 commit 8024f4e2aacd9e1ffffe8479be5ec17f5038017c James A. Rosen committed Sep 23, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/BarView.js
View
@@ -2,13 +2,16 @@ Ember.ProgressBars = Ember.ProgressBars || {};
Ember.ProgressBars.Bar = Ember.View.extend({
template: Em.Handlebars.compile('<div class="bar"></div>'),
+
percent: 0,
+
init: function() {
var classNames = this.get('classNames') || [];
classNames.push('progress');
this.set('classNames', classNames);
return this._super.apply(this, arguments);
},
+
onPercentChange: function() {
var percent = this.get('percent') || 0;
this.$('.bar').css('width', "%@%".fmt(percent) );

0 comments on commit 8024f4e

Please sign in to comment.