1 var $ = require('jquery')
2 , jsdom = require('jsdom')
3 , m = require('mithril');
7 var global = (function() { return this })();
10 md.ready = function(cb) {
11 if (typeof window !== 'undefined' && global === window) {
16 html: '<html></html>',
18 '../node_modules/jquery/dist/jquery.js',
19 '../node_modules/mithril/mithril.js',
21 done: function(err, win) {
30 var div = $('<div></div>')[0];
31 (jsdomWin.m || m).render(div, cell);