fix global reference for node env

This commit is contained in:
Hugo Dias
2016-03-15 15:37:26 +00:00
parent 2bb7a37cb9
commit ac44bee03a

View File

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