mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
parent
d8f3e528c2
commit
a0791b52ed
@ -22,7 +22,7 @@ if (typeof window !== 'undefined') {
|
||||
var attachEvent = typeof document !== 'undefined' && document.attachEvent;
|
||||
var stylesCreated = false;
|
||||
|
||||
if (!attachEvent) {
|
||||
if (typeof window !== 'undefined' && !attachEvent) {
|
||||
var requestFrame = (function(){
|
||||
var raf = _window.requestAnimationFrame || _window.mozRequestAnimationFrame || _window.webkitRequestAnimationFrame ||
|
||||
function(fn){ return _window.setTimeout(fn, 20); };
|
||||
@ -165,4 +165,4 @@ var removeResizeListener = function(element, fn){
|
||||
module.exports = {
|
||||
addResizeListener : addResizeListener,
|
||||
removeResizeListener : removeResizeListener
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user