Sha256: 856433b81def9dadbd82952b651e84be361b0e0014beace7efd784a7551f4b6f
Contents?: true
Size: 666 Bytes
Versions: 2
Compression:
Stored size: 666 Bytes
Contents
/*global sinon*/ /** * Helps IE run the fake XMLHttpRequest. By defining global functions, IE allows * them to be overwritten at a later point. If these are not defined like * this, overwriting them will result in anything from an exception to browser * crash. * * If you don't require fake XHR to work in IE, don't include this file. * * @author Christian Johansen (christian@cjohansen.no) * @license BSD * * Copyright (c) 2010-2013 Christian Johansen */ function XMLHttpRequest() {} // Reassign the original function. Now its writable attribute // should be true. Hackish, I know, but it works. XMLHttpRequest = sinon.xhr.XMLHttpRequest || undefined;
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ende-0.5.22 | components/indefinido/indemma/master/vendor/spec/sinon/util/xhr_ie.js |
ende-0.5.21 | components/indefinido/indemma/master/vendor/spec/sinon/util/xhr_ie.js |