fix node global

This commit is contained in:
Hugo Dias 2016-03-14 18:50:31 +00:00
parent a2887e2904
commit ad9ef7f978

View File

@ -29,7 +29,7 @@
*/
// runtime check for already included Konva
(function(){
(function(global){
'use strict';
/**
* @namespace Konva
@ -246,7 +246,7 @@
}
Konva.document = document;
Konva.window = window;
})();
})(typeof window !== 'undefined' ? window : global);
/*eslint-disable eqeqeq, no-cond-assign, no-empty*/
(function() {