Browse Source
Merge pull request #636 from gabrigcl/dev
Bug in Modal while trying to use it with the video component solved
pull/652/head
Artur Arseniev
9 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
src/dom_components/view/ComponentVideoView.js
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
var Backbone = require('backbone'); |
|
|
|
var ComponentView = require('./ComponentImageView'); |
|
|
|
var OComponentView = require('./ComponentView'); |
|
|
|
|
|
|
|
module.exports = ComponentView.extend({ |
|
|
|
|
|
|
|
@ -8,7 +9,8 @@ module.exports = ComponentView.extend({ |
|
|
|
events: {}, |
|
|
|
|
|
|
|
initialize(o) { |
|
|
|
ComponentView.prototype.initialize.apply(this, arguments); |
|
|
|
OComponentView.prototype.initialize.apply(this, arguments); |
|
|
|
this.listenTo(this.model, 'change:src', this.updateSrc); |
|
|
|
this.listenTo(this.model, 'change:loop change:autoplay change:controls change:color', this.updateVideo); |
|
|
|
this.listenTo(this.model, 'change:provider', this.updateProvider); |
|
|
|
}, |
|
|
|
|