allow path ends with slash in loadResAll

This commit is contained in:
Jare Guo
2016-06-03 13:55:36 +08:00
parent f7c677ac4e
commit eefa01f0f2
@@ -75,6 +75,9 @@ cc.js.mixin(AssetTable.prototype, {
getUuidArray: function (path, type) {
path = cc.url.normalize(path);
if (path[path.length - 1] === '/') {
path = path.slice(0, -1);
}
var path2uuid = this._pathToUuid;
var uuids = [];
var p, i;