src/js/layout.js
branchpopcorn-port
changeset 138 37b70a8c61a2
parent 117 b0a699baf3f1
child 159 de92bfdcbe4c
equal deleted inserted replaced
137:ef6c1252c459 138:37b70a8c61a2
    13     this._width = 640;
    13     this._width = 640;
    14     this._height = 480;
    14     this._height = 480;
    15     
    15     
    16     if (options === undefined) {
    16     if (options === undefined) {
    17       options = {};
    17       options = {};
    18       console.error("The options parameter is undefined.");
       
    19     };
    18     };
    20     
    19     
    21     if (options.hasOwnProperty('container')) {
    20     if (options.hasOwnProperty('container')) {
    22       this._div = options.container;
    21       this._div = options.container;
    23     }
    22     }