-/*globals window, document, jQuery, _, Backbone, _wpmejsSettings */
+/* global _wpmejsSettings, MediaElementPlayer */
(function ($, _, Backbone) {
- "use strict";
+ 'use strict';
var WPPlaylistView = Backbone.View.extend({
initialize : function (options) {
_.bindAll( this, 'bindPlayer', 'bindResetPlayer', 'setPlayer', 'ended', 'clickTrack' );
if ( ! _.isUndefined( window._wpmejsSettings ) ) {
- this.settings = _wpmejsSettings;
+ this.settings = _.clone( _wpmejsSettings );
}
this.settings.success = this.bindPlayer;
this.setPlayer();
window.WPPlaylistView = WPPlaylistView;
-}(jQuery, _, Backbone));
\ No newline at end of file
+}(jQuery, _, Backbone));