File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 132
132
"raf" : " ^3.1.0" ,
133
133
"run-sequence" : " ^1.1.4" ,
134
134
"run-series" : " ^1.1.4" ,
135
- "storage-mixin" : " ^0.5.0 " ,
135
+ "storage-mixin" : " ^0.5.1 " ,
136
136
"stream-combiner2" : " ^1.1.1" ,
137
137
"uuid" : " ^2.0.1" ,
138
138
"vinyl-buffer" : " ^1.0.0" ,
Original file line number Diff line number Diff line change @@ -216,7 +216,9 @@ var ConnectView = View.extend({
216
216
initialize : function ( ) {
217
217
document . title = 'Connect to MongoDB' ;
218
218
this . connections . once ( 'sync' , this . connectionsFetched . bind ( this ) ) ;
219
- this . connections . fetch ( ) ;
219
+ // use {reset: true} to trigger `reset` event so ConnectionCollection
220
+ // can add its listeners to the models.
221
+ this . connections . fetch ( { reset : true } ) ;
220
222
this . stateMachine = new BehaviorStateMachine ( this ) ;
221
223
this . on ( 'change:connectionNameEmpty' ,
222
224
this . connectionNameEmptyChanged . bind ( this ) ) ;
You can’t perform that action at this time.
0 commit comments