0byt3m1n1
Path:
/
var
/
lib
/
vz
/
www
/
clients
/
client6
/
web11
/
web
/
wp-content
/
plugins
/
wp-google-maps
/
js
/
v8
/
[
Home
]
File: compatibility.js
/** * @namespace WPGMZA * @module Compatibility * @requires WPGMZA */ jQuery(function($) { /** * Reverse compatibility module * * @class WPGMZA.Compatibility * @constructor WPGMZA.Compatibility * @memberof WPGMZA */ WPGMZA.Compatibility = function() { this.preventDocumentWriteGoogleMapsAPI(); } /** * Prevents document.write from outputting Google Maps API script tag * * @method * @memberof WPGMZA.Compatibility */ WPGMZA.Compatibility.prototype.preventDocumentWriteGoogleMapsAPI = function() { var old = document.write; document.write = function(content) { if(content.match && content.match(/maps\.google/)) return; old.call(document, content); } } WPGMZA.compatiblityModule = new WPGMZA.Compatibility(); });