Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. es.Document = function( wikidomBlocks ) {
  2.     var blocks = [];
  3.    
  4.     for ( var i = 0; i < wikidomBlocks.length; i++ ) {
  5.         var block = Block.newFromWikidom( wikidomBlocks[i] );
  6.         if ( block ) {
  7.             blocks.push( block );
  8.         }
  9.     }
  10.  
  11.     es.Container.call( this, 'document', 'blocks', blocks );
  12.     this.width = null;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement