Skip to content

Commit

Permalink
Fixes to ManifestLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanny McNie committed Dec 8, 2014
1 parent b1ab78a commit 659b3d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _assets/static/MediaGridManifest.json
Expand Up @@ -8,7 +8,7 @@ maps({
{"id":"static/gbot.svg", "src":"art/gbot.svg"},
{"id":"static/grant.json", "src":"static/grant.json"},
{"id":"static/font.css", "src":"static/font.css"},
{"id":"audio/Thunder.mp3|audio/Thunder.ogg", "src":"audio/Thunder.mp3|audio/Thunder.ogg"},
{"id":"audio/Thunder.mp3", "src":"audio/Thunder.mp3"},
{"id":"http://gskinner.com/assets/createjs/mapsJSONP.json", "callback":"maps", "type":"jsonp", "src":"http://gskinner.com/assets/createjs/mapsJSONP.json"},
{"id":"art/Autumn.png", "src":"art/Autumn.png"},
]
Expand Down
2 changes: 1 addition & 1 deletion examples/MediaGrid.html
Expand Up @@ -153,7 +153,7 @@ <h1>Example: Media Grid</h1>
}

function loadManifest() {
preload.loadFile({src: "../_assets/static/MediaGridManifest.json", callback: "maps", type: "manifest"}, true, "../_assets/");
preload.loadManifest({src: "../_assets/static/MediaGridManifest.json", callback: "maps", type: "manifest"}, true, "../_assets/");
}

function stop() {
Expand Down
2 changes: 1 addition & 1 deletion src/preloadjs/loaders/ManifestLoader.js
Expand Up @@ -87,7 +87,7 @@ this.createjs = this.createjs || {};
// protected methods
p._createRequest = function() {
var callback = this._item.callback
if (callback != null && callback instanceof Function) {
if (callback != null) {
this._request = new createjs.JSONPLoader(this._item);
} else {
this._request = new createjs.JSONLoader(this._item);
Expand Down

0 comments on commit 659b3d9

Please sign in to comment.