Skip to content

Commit 572af95

Browse files
committed
JS syntax consistency.
1 parent 54b5c0c commit 572af95

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

client/app/components/progress-bar.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export default Ember.Component.extend({
2-
classNames: ['progress-bar'],
3-
attributeBindings: ['style'],
2+
classNames: 'progress-bar',
3+
attributeBindings: 'style',
4+
45
style: function() {
56
return 'width: ' + this.get('progress') + '%;';
67
}.property('progress')

client/app/components/progress-spinner.js

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export default Ember.Component.extend({
3434
zIndex: 2e9, // The z-index (defaults to 2000000000)
3535
top: '50%', // Top position relative to parent
3636
left: '50%', // Left position relative to parent
37-
3837
classNames: 'progress-spinner-container',
3938

4039
didInsertElement: function() {

client/app/controllers/image-item.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ export default Ember.ObjectController.extend(Ember.FSM.Stateful, {
1313
sequence: function(key, value) {
1414
if (arguments.length === 1) {
1515
var createdAt = this.get('createdAt');
16-
if (createdAt) {
17-
return createdAt.valueOf();
18-
} else {
19-
return new Date().valueOf();
20-
}
16+
return createdAt ? createdAt.valueOf() : new Date().valueOf();
2117
} else {
2218
return value;
2319
}

0 commit comments

Comments
 (0)