(column)
| 32 | } |
| 33 | |
| 34 | addColumn(column){ |
| 35 | if(Object.prototype.toString.call(column) === '[object String]') { |
| 36 | var obj = new CB.Column(column); |
| 37 | column = obj; |
| 38 | } |
| 39 | if (Object.prototype.toString.call(column) === '[object Object]') { |
| 40 | if(CB._columnValidation(column, this)) |
| 41 | this.document.columns.push(column); |
| 42 | |
| 43 | } else if (Object.prototype.toString.call(column) === '[object Array]') { |
| 44 | for(var i=0; i<column.length; i++){ |
| 45 | if(CB._columnValidation(column[i], this)) |
| 46 | this.document.columns.push(column[i]); |
| 47 | } |
| 48 | } |
| 49 | }; |
| 50 | |
| 51 | getColumn(columnName){ |
| 52 | if(Object.prototype.toString.call(columnName) !== '[object String]') { |
no outgoing calls
no test coverage detected