Skip to content

Commit

Permalink
Fixed empty layout error (github issue #24)
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframHempel committed Dec 14, 2014
1 parent e4caa36 commit 37deb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/LayoutManager.js
Expand Up @@ -866,7 +866,7 @@ lm.utils.copy( lm.LayoutManager.prototype, {
throw new lm.errors.ConfigurationError( errorMsg, config );
}

if( config.content.length !== 1 ) {
if( config.content.length > 1 ) {
errorMsg = 'Top level content can\'t contain more then one element.';
throw new lm.errors.ConfigurationError( errorMsg, config );
}
Expand Down

0 comments on commit 37deb1a

Please sign in to comment.