function Board(title) {
    var nextId = 0;

    this.title = title;
    this.lists = [];
    this.cards = {};

    this.node = document.createElement('div');
    this.titleNode = document.createElement('div');
    this.listsNode = document.createElement('div');

    this.node.id = 'board';
    this.titleNode.id = 'trello-title-board';
    this.listsNode.id = 'trello-canvas-board';

    // new list title form
    this.titleFormNode = buildListTitleForm();
    this.titleNode.appendChild(document.createTextNode(this.title));

    this.getNextId = function () {
      return '_' + (nextId++).toString();
    };
  }
//Board constructor object and assign some properties to its prototype
Board constructor object and assign some properties to its prototype
Board constructor object and assign some properties to its prototype
function Board(title) {
    var nextId = 0;
    this.title = title;
    this.lists = [];
    this.cards = {};
    this.node = document.createElement('div');
    this.titleNode = document.createElement('div');
    this.listsNode = document.createElement('div');
    this.node.id = 'board';
    this.titleNode.id = 'trello-title-board';
    this.listsNode.id = 'trello-canvas-board';
    this.titleFormNode = buildListTitleForm();
    this.titleNode.appendChild(document.createTextNode(this.title));
    this.getNextId = function () {
      return '_' + (nextId++).toString();
    };
  }
function Board ( title ) { var nextId = 0 ; this . title = title ; this . lists = [ ] ; this . cards = { } ; this . node = document . createElement ( 'div' ) ; this . titleNode = document . createElement ( 'div' ) ; this . listsNode = document . createElement ( 'div' ) ; this . node . id = 'board' ; this . titleNode . id = 'trello-title-board' ; this . listsNode . id = 'trello-canvas-board' ; this . titleFormNode = buildListTitleForm ( ) ; this . titleNode . appendChild ( document . createTextNode ( this . title ) ) ; this . getNextId = function ( ) { return '_' + ( nextId ++ ) . toString ( ) ; } ; }
Board constructor object and assign some properties to its prototype
Board constructor object and assign some properties to its prototype
// new list title form