minor cleanups

This commit is contained in:
Sanjay Bhangar 2018-03-06 19:40:03 +05:30
parent c43759e8b2
commit d7864c6d36

View File

@ -16,7 +16,7 @@ var PandoraEmbed = function(options) {
this.boundFns = {};
var width = options.width || 640;
var height = options.height || 360;
var container = options.container || document;
var container = options.container || document.body;
if (!options.url) {
alert('no embed url specified');
return;
@ -40,7 +40,7 @@ var PandoraEmbed = function(options) {
init();
});
window.addEventListener('message', that.listener.bind(this), false);
window.addEventListener('message', this.listener.bind(this), false);
container.appendChild($iframe);
return this;
};