Skip to content

Commit 17d61df

Browse files
committed
Removed deprecated useXHR (changed to preferXHR)
1 parent fb26beb commit 17d61df

1 file changed

Lines changed: 1 addition & 43 deletions

File tree

src/preloadjs/LoadQueue.js

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
* <li>Opera has poor support for SVG loading with XHR</li>
7373
* <li>CSS loading in Android and Safari will not work with tags (currently, a workaround is in progress)</li>
7474
* <li>Local loading is not permitted with XHR, which is required by some file formats. When testing local content
75-
* use either a local server, or enable tag loading, which is supported for most formats. See {{#crossLink "LoadQueue/setUseXHR"}}{{/crossLink}}
75+
* use either a local server, or enable tag loading, which is supported for most formats. See {{#crossLink "LoadQueue/setPreferXHR"}}{{/crossLink}}
7676
* for more information.</li>
7777
* </ul>
7878
*
@@ -432,14 +432,6 @@ this.createjs = this.createjs || {};
432432
p.init = function (preferXHR, basePath, crossOrigin) {
433433

434434
// public properties
435-
/**
436-
* @property useXHR
437-
* @type {Boolean}
438-
* @readonly
439-
* @default true
440-
* @deprecated Use preferXHR instead.
441-
*/
442-
this.useXHR = true;
443435

444436
/**
445437
* Try and use XMLHttpRequest (XHR) when possible. Note that LoadQueue will default to tag loading or XHR
@@ -617,27 +609,6 @@ this.createjs = this.createjs || {};
617609
};
618610

619611
// static properties
620-
/**
621-
* The time in milliseconds to assume a load has failed. An {{#crossLink "AbstractLoader/error:event"}}{{/crossLink}}
622-
* event is dispatched if the timeout is reached before any data is received.
623-
* @property loadTimeout
624-
* @type {Number}
625-
* @default 8000
626-
* @static
627-
* @since 0.4.1
628-
* @deprecated In favour of the LoadItem.LOAD_TIMEOUT_DEFAULT property.
629-
*/
630-
s.loadTimeout = 8000;
631-
632-
/**
633-
* The time in milliseconds to assume a load has failed.
634-
* @property LOAD_TIMEOUT
635-
* @type {Number}
636-
* @default 0
637-
* @deprecated in favor of the LoadQueue.loadTimeout property.
638-
*/
639-
s.LOAD_TIMEOUT = 0;
640-
641612

642613
// events
643614
/**
@@ -709,19 +680,6 @@ this.createjs = this.createjs || {};
709680
}
710681
};
711682

712-
/**
713-
* @method setUseXHR
714-
* @param {Boolean} value The new useXHR value to set.
715-
* @return {Boolean} The new useXHR value. If XHR is not supported by the browser, this will return false, even if
716-
* the provided value argument was true.
717-
* @since 0.3.0
718-
* @deprecated use the {{#crossLink "LoadQueue/preferXHR:property"}}{{/crossLink}} property, or the
719-
* {{#crossLink "LoadQueue/setUseXHR"}}{{/crossLink}} method instead.
720-
*/
721-
p.setUseXHR = function (value) {
722-
return this.setPreferXHR(value);
723-
};
724-
725683
/**
726684
* Change the {{#crossLink "preferXHR:property"}}{{/crossLink}} value. Note that if this is set to `true`, it may
727685
* fail, or be ignored depending on the browser's capabilities and the load type.

0 commit comments

Comments
 (0)