зеркало из https://github.com/mozilla/popcorn-js.git
fixed whitespace
This commit is contained in:
Родитель
54f0fe04e2
Коммит
bf1257d30e
|
@ -54,10 +54,10 @@
|
||||||
var _loadResults = function( data, options ) {
|
var _loadResults = function( data, options ) {
|
||||||
var title = data.title,
|
var title = data.title,
|
||||||
html = data.html;
|
html = data.html;
|
||||||
if( data && title && html ) {
|
if ( data && title && html ) {
|
||||||
_album[ options.containerid ].htmlString = "<div>" + html + "</div>";
|
_album[ options.containerid ].htmlString = "<div>" + html + "</div>";
|
||||||
} else {
|
} else {
|
||||||
if( Popcorn.plugin.debug ) {
|
if ( Popcorn.plugin.debug ) {
|
||||||
throw new Error( "Did not receive data from server." );
|
throw new Error( "Did not receive data from server." );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
var key = options.containerid = Popcorn.guid(),
|
var key = options.containerid = Popcorn.guid(),
|
||||||
container = _container[ key ] = document.createElement( "div" ),
|
container = _container[ key ] = document.createElement( "div" ),
|
||||||
target = _target[ key ] = document.getElementById( options.target );
|
target = _target[ key ] = document.getElementById( options.target );
|
||||||
if( !target && Popcorn.plugin.debug ) {
|
if ( !target && Popcorn.plugin.debug ) {
|
||||||
throw new Error( "Target container could not be found." );
|
throw new Error( "Target container could not be found." );
|
||||||
}
|
}
|
||||||
container.style.display = "none";
|
container.style.display = "none";
|
||||||
|
|
Загрузка…
Ссылка в новой задаче