minor cleanups
This commit is contained in:
parent
c43759e8b2
commit
d7864c6d36
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user