@@ -61,13 +61,16 @@ this.createjs = this.createjs || {};
6161 * Note that the {{#crossLink "JSONLoader"}}{{/crossLink}} and {{#crossLink "JSONPLoader"}}{{/crossLink}} are
6262 * higher priority loaders, so manifests <strong>must</strong> set the {{#crossLink "LoadItem"}}{{/crossLink}}
6363 * {{#crossLink "LoadItem/type:property"}}{{/crossLink}} property to {{#crossLink "AbstractLoader/MANIFEST:property"}}{{/crossLink}}.
64+ *
65+ * Additionally, some browsers require the server to serve a JavaScript mime-type for JSONP, so it may not work in
66+ * some conditions.
6467 * @class ManifestLoader
6568 * @param {LoadItem|Object } loadItem
6669 * @extends AbstractLoader
6770 * @constructor
6871 */
69- function ManifestLoader ( loadItem ) {
70- this . AbstractLoader_constructor ( loadItem , null , createjs . AbstractLoader . MANIFEST ) ;
72+ function ManifestLoader ( loadItem , preferXHR ) {
73+ this . AbstractLoader_constructor ( loadItem , preferXHR , createjs . AbstractLoader . MANIFEST ) ;
7174
7275 // Public Properties
7376 /**
@@ -164,7 +167,7 @@ this.createjs = this.createjs || {};
164167 */
165168 p . _loadManifest = function ( json ) {
166169 if ( json && json . manifest ) {
167- var queue = this . _manifestQueue = new createjs . LoadQueue ( ) ;
170+ var queue = this . _manifestQueue = new createjs . LoadQueue ( this . _preferXHR ) ;
168171 queue . on ( "fileload" , this . _handleManifestFileLoad , this ) ;
169172 queue . on ( "progress" , this . _handleManifestProgress , this ) ;
170173 queue . on ( "complete" , this . _handleManifestComplete , this , true ) ;
0 commit comments