mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-09-01 08:17:16 +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
|
@ -1,4 +1,3 @@
|
|||
var _ = require('underscore');
|
||||
var Backbone = require('backbone');
|
||||
|
||||
var Collections = require('../models/collections');
|
||||
|
@ -13,7 +12,7 @@ var Visualization = Backbone.View.extend({
|
|||
initialize: function(options) {
|
||||
options = options || {};
|
||||
this.options = options;
|
||||
this.customEvents = _.clone(Backbone.Events);
|
||||
this.customEvents = Object.assign({}, Backbone.Events);
|
||||
this.containerElement = options.containerElement;
|
||||
|
||||
var _this = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue