File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ var ViewSwitcher = require('ampersand-view-switcher');
5
5
var $ = require ( 'jquery' ) ;
6
6
var debug = require ( 'debug' ) ( 'scout:field-list' ) ;
7
7
var _ = require ( 'lodash' ) ;
8
+ var raf = require ( 'raf' ) ;
8
9
var SampledSchema = require ( '../models/sampled-schema' ) ;
9
10
10
11
function handleCaret ( el ) {
@@ -108,11 +109,6 @@ var FieldView = View.extend({
108
109
model : this . type_model
109
110
} ) ;
110
111
this . viewSwitcher . set ( miniview ) ;
111
-
112
- // _.each(this._subviews, function(subview) {
113
- // subview.visible = true;
114
- // debugger;
115
- // });
116
112
} ,
117
113
click : function ( evt ) {
118
114
this . toggle ( 'expanded' ) ;
@@ -136,7 +132,9 @@ FieldListView = View.extend({
136
132
makeFieldVisible : function ( ) {
137
133
var views = this . field_collection_view . views ;
138
134
_ . each ( views , function ( field_view ) {
139
- field_view . visible = true ;
135
+ raf ( function ( ) {
136
+ field_view . visible = true ;
137
+ } ) ;
140
138
} ) ;
141
139
} ,
142
140
render : function ( ) {
You can’t perform that action at this time.
0 commit comments