Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update loading-items.js #2665

Merged
merged 1 commit into from May 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions cocos2d/core/load-pipeline/loading-items.js
Expand Up @@ -124,7 +124,7 @@ function checkCircleReference(owner, item, recursiveCall) {
/**
* !#en
* LoadingItems is the queue of items which can flow them into the loading pipeline.</br>
* Please don't construct it directly, use {{#crossLink "LoadingItems.create"}}LoadingItems.create{{/crossLink}} instead, because we use an internal pool to recycle the queues.</br>
* 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.</br>
* It hold a map of items, each entry in the map is a url to object key value pair.</br>
* Each item always contains the following property:</br>
* - id: The identification of the item, usually it's identical to url</br>
Expand All @@ -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 是一个加载对象队列,可以用来输送加载对象到加载管线中。</br>
* 请不要直接使用 new 构造这个类的对象,你可以使用 {{#crossLink "LoadingItems.create"}}LoadingItems.create{{/crossLink}} 来创建一个新的加载队列,这样可以允许我们的内部对象池回收并重利用加载队列。
* 请不要直接使用 new 构造这个类的对象,你可以使用 {{#crossLink "LoadingItems.create"}}cc.LoadingItems.create{{/crossLink}} 来创建一个新的加载队列,这样可以允许我们的内部对象池回收并重利用加载队列。
* 它有一个 map 属性用来存放加载项,在 map 对象中已 url 为 key 值。</br>
* 每个对象都会包含下列属性:</br>
* - id:该对象的标识,通常与 url 相同。</br>
Expand Down Expand Up @@ -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) {
Expand Down