Skip to content

Commit

Permalink
Merge pull request #61 from tbo/master
Browse files Browse the repository at this point in the history
Fix "window is undefined" bug on node.js
  • Loading branch information
AllenFang committed Sep 28, 2015
2 parents 241994d + 1ed3be4 commit f5db238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ var TableHeaderColumn = _interopRequire(require("./TableHeaderColumn"));

var TableDataSet = require("./store/TableDataStore").TableDataSet;

if (window) {
if (typeof window !== 'undefined') {
window.BootstrapTable = BootstrapTable;
window.TableHeaderColumn = TableHeaderColumn;
}
module.exports = {
BootstrapTable: BootstrapTable,
TableHeaderColumn: TableHeaderColumn,
TableDataSet: TableDataSet
};
};

0 comments on commit f5db238

Please sign in to comment.