From af02e776e46bd46dde20451bafa71266b2bc85e5 Mon Sep 17 00:00:00 2001 From: "yufang.wu" <2435731537@qq.com> Date: Fri, 11 May 2018 14:10:28 +0800 Subject: [PATCH] Update loading-items.js (#2665) --- cocos2d/core/load-pipeline/loading-items.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos2d/core/load-pipeline/loading-items.js b/cocos2d/core/load-pipeline/loading-items.js index 1aaf32e566..8bc1380a4f 100644 --- a/cocos2d/core/load-pipeline/loading-items.js +++ b/cocos2d/core/load-pipeline/loading-items.js @@ -124,7 +124,7 @@ function checkCircleReference(owner, item, recursiveCall) { /** * !#en * LoadingItems is the queue of items which can flow them into the loading pipeline.
- * Please don't construct it directly, use {{#crossLink "LoadingItems.create"}}LoadingItems.create{{/crossLink}} instead, because we use an internal pool to recycle the queues.
+ * Please don't construct it directly, use {{#crossLink "LoadingItems.create"}}cc.LoadingItems.create{{/crossLink}} instead, because we use an internal pool to recycle the queues.
* It hold a map of items, each entry in the map is a url to object key value pair.
* Each item always contains the following property:
* - id: The identification of the item, usually it's identical to url
@@ -140,7 +140,7 @@ function checkCircleReference(owner, item, recursiveCall) { * So please don't hold its reference for later usage, you can copy properties in it though. * !#zh * LoadingItems 是一个加载对象队列,可以用来输送加载对象到加载管线中。
- * 请不要直接使用 new 构造这个类的对象,你可以使用 {{#crossLink "LoadingItems.create"}}LoadingItems.create{{/crossLink}} 来创建一个新的加载队列,这样可以允许我们的内部对象池回收并重利用加载队列。 + * 请不要直接使用 new 构造这个类的对象,你可以使用 {{#crossLink "LoadingItems.create"}}cc.LoadingItems.create{{/crossLink}} 来创建一个新的加载队列,这样可以允许我们的内部对象池回收并重利用加载队列。 * 它有一个 map 属性用来存放加载项,在 map 对象中已 url 为 key 值。
* 每个对象都会包含下列属性:
* - id:该对象的标识,通常与 url 相同。
@@ -298,7 +298,7 @@ LoadingItems.ItemState = new cc.Enum(ItemState); * @param {Function} onComplete The completion callback, refer to {{#crossLink "LoadingItems.onComplete"}}{{/crossLink}} * @return {LoadingItems} The LoadingItems queue obejct * @example - * LoadingItems.create(cc.loader, ['a.png', 'b.plist'], function (completedCount, totalCount, item) { + * cc.LoadingItems.create(cc.loader, ['a.png', 'b.plist'], function (completedCount, totalCount, item) { * var progress = (100 * completedCount / totalCount).toFixed(2); * cc.log(progress + '%'); * }, function (errors, items) {