Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Commit

Permalink
removing virtual-item
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmit committed Aug 27, 2015
1 parent 16d89bd commit 2950011
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 16 deletions.
8 changes: 0 additions & 8 deletions addon/components/virtual-item.js

This file was deleted.

4 changes: 1 addition & 3 deletions addon/templates/components/virtual-each.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<ul class="infinite-list-content" style={{safeStyle}}>
{{#each visibleItems key='@index' as |item|}}
{{#virtual-item}}
{{yield item.raw item.index}}
{{/virtual-item}}
<li class="virtual-item">{{yield item.raw item.index}}</li>
{{/each}}
</ul>
1 change: 0 additions & 1 deletion addon/templates/components/virtual-item.hbs

This file was deleted.

1 change: 0 additions & 1 deletion app/components/virtual-item.js

This file was deleted.

6 changes: 3 additions & 3 deletions tests/dummy/app/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ function coerceSet(attributeName) {

export default Ember.Controller.extend({
actions: {
setScrollTimeout: coerceSet('scrollTimeout'),
setPositionIndex: coerceSet('positionIndex'),
selected(modelType) {
this.set('selected', modelType);
},
Expand All @@ -28,9 +30,7 @@ export default Ember.Controller.extend({
},
shrink() {
this.set('height', this.get('height') - this.get('height') * 0.3);
},
setScrollTimeout: coerceSet('scrollTimeout'),
setPositionIndex: coerceSet('positionIndex')
}
},

positionIndex: null,
Expand Down

0 comments on commit 2950011

Please sign in to comment.