Skip to content

Commit 0f6a2d9

Browse files
committed
Change all 'couldn\'t' to 'could not'
1 parent e72dda5 commit 0f6a2d9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

jupyter-js-widgets/src/manager-base.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ ManagerBase.prototype.create_view = function(model, options) {
107107
return Promise.resolve(view.render()).then(function() {
108108
return view;
109109
});
110-
}).catch(utils.reject('Couldn\'t create a view for model id ' + model.id, true));
110+
}).catch(utils.reject('Could not create a view for model id ' + model.id, true));
111111
});
112112
var id = utils.uuid();
113113
model.views[id] = model.state_change;
@@ -139,7 +139,7 @@ ManagerBase.prototype.handle_comm_open = function (comm, msg) {
139139
model_name: msg.content.data._model_name,
140140
model_module: msg.content.data._model_module,
141141
comm: comm
142-
}, msg.content.data).catch(utils.reject('Couldn\'t create a model.', true));
142+
}, msg.content.data).catch(utils.reject('Could not create a model.', true));
143143
};
144144

145145
/**
@@ -270,7 +270,7 @@ ManagerBase.prototype.new_model = function(options, serialized_state) {
270270
});
271271
}, function(error) {
272272
delete that._models[model_id];
273-
var wrapped_error = new utils.WrappedError('Couldn\'t create model', error);
273+
var wrapped_error = new utils.WrappedError('Could not create model', error);
274274
return Promise.reject(wrapped_error);
275275
});
276276
this._models[model_id] = model_promise;

jupyter-js-widgets/src/widget.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ var WidgetViewMixin = {
494494
var that = this;
495495
options = _.extend({ parent: this }, options || {});
496496
return this.model.widget_manager.create_view(child_model, options)
497-
.catch(utils.reject('Couldn\'t create child view', true));
497+
.catch(utils.reject('Could not create child view', true));
498498
},
499499

500500
callbacks: function(){
@@ -659,7 +659,7 @@ var DOMWidgetViewMixin = {
659659
view.trigger('displayed', that);
660660
return view;
661661
});
662-
}).catch(utils.reject('Couldn\'t add LayoutView to DOMWidgetView', true));
662+
}).catch(utils.reject('Could not add LayoutView to DOMWidgetView', true));
663663
});
664664
}
665665
},

jupyter-js-widgets/src/widget_box.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ var ProxyView = widget.DOMWidgetView.extend({
8585
});
8686
that.child = view;
8787
that.trigger('child:created');
88-
}).catch(utils.reject('Couldn\'t add child view to proxy', true));
88+
}).catch(utils.reject('Could not add child view to proxy', true));
8989
});
9090
}
9191
return this.child_promise;
@@ -201,7 +201,7 @@ var BoxView = widget.DOMWidgetView.extend({
201201
view.trigger('displayed', that);
202202
});
203203
return view;
204-
}).catch(utils.reject('Couldn\'t add child view to box', true));
204+
}).catch(utils.reject('Could not add child view to box', true));
205205
},
206206

207207
remove: function() {

jupyter-js-widgets/src/widget_selectioncontainer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ var AccordionView = widget.DOMWidgetView.extend({
181181
view.trigger('displayed', that);
182182
});
183183
return view;
184-
}).catch(utils.reject('Couldn\'t add child view to box', true));
184+
}).catch(utils.reject('Could not add child view to box', true));
185185
},
186186

187187
remove: function() {
@@ -278,7 +278,7 @@ var TabView = widget.DOMWidgetView.extend({
278278
child.on('remove', function() { parent.tabBar.removeItem(tab); });
279279

280280
return child;
281-
}).catch(utils.reject('Couldn\'t add child view to box', true));
281+
}).catch(utils.reject('Could not add child view to box', true));
282282
},
283283

284284
removeChildView: function(child) { child.remove(); },

0 commit comments

Comments
 (0)