mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-14 23:12:25 +02:00
change '_.clone(..args)' to 'Object.assign({}, ..args)'
This commit is contained in:
parent
052aa1e299
commit
489a4b9095
8 changed files with 14 additions and 17 deletions
|
@ -48,7 +48,7 @@ var MultiView = Backbone.View.extend({
|
|||
this.childViews = [];
|
||||
this.currentIndex = 0;
|
||||
|
||||
this.navEvents = _.clone(Backbone.Events);
|
||||
this.navEvents = Object.assign({}, Backbone.Events);
|
||||
this.navEvents.on('negative', this.getNegFunc(), this);
|
||||
this.navEvents.on('positive', this.getPosFunc(), this);
|
||||
this.navEvents.on('quit', this.finish, this);
|
||||
|
@ -192,4 +192,3 @@ var MultiView = Backbone.View.extend({
|
|||
});
|
||||
|
||||
exports.MultiView = MultiView;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue