Skip to content

Commit 0cd38d1

Browse files
imlucaskangas
authored andcommitted
fix(document-list): Now better perf not having listener overhead
visibility toggled on top-level again (home)
1 parent 3d64f7b commit 0cd38d1

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/document-list/document-list-item.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,9 @@ function getType(value) {
1717
}
1818

1919
var DocumentListItemView = View.extend({
20-
props: {
21-
visible: {
22-
type: 'boolean',
23-
default: false
24-
}
25-
},
26-
bindings: {
27-
visible: {
28-
type: 'booleanClass',
29-
no: 'hidden'
30-
}
31-
},
3220
events: {
3321
'click .document-property-header': 'onClick'
3422
},
35-
initialize: function() {
36-
this.listenTo(this.model.collection, 'sync', function() {
37-
this.visible = true;
38-
});
39-
},
4023
onClick: function(event) {
4124
event.preventDefault();
4225
var el = event.delegateTarget.parentElement;

0 commit comments

Comments
 (0)