added check for module as well as require for node environment

see PR : https://github.com/SheetJS/js-xls/pull/23
This commit is contained in:
phola 2013-11-22 16:24:55 +00:00
parent 7a3ca6a1ab
commit 02a0510c7b

@ -2,7 +2,7 @@
/* vim: set ts=2: */
/*jshint eqnull:true */
/* Spreadsheet Format -- jump to XLSX for the XLSX code */
if(typeof require !== "undefined") SSF = require('ssf');
if(typeof module !== "undefined" && typeof require !== 'undefined') SSF = require('ssf');
var SSF = (function() {
var SSF = {};
String.prototype.reverse=function(){return this.split("").reverse().join("");};