Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

whitespace

  • Loading branch information...
commit 8024f4e2aacd9e1ffffe8479be5ec17f5038017c 1 parent a368ee3
James A. Rosen authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/BarView.js
View
3  lib/BarView.js
@@ -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) );
Please sign in to comment.
Something went wrong with that request. Please try again.