Skip to content

Commit

Permalink
Update asset.jsb.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Jan 12, 2025
1 parent 887c1c4 commit 85d5f03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cocos/asset/assets/asset.jsb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
THE SOFTWARE.
*/

import { cclegacy, js, _decorator, path, jsbUtils, CallbacksInvoker, applyMixins } from '../../core';
import { cclegacy, js, _decorator, path, CallbacksInvoker, applyMixins } from '../../core';
import { getUrlWithUuid } from '../asset-manager/helper';
import { patch_cc_Asset } from '../../native-binding/decorators';
import type { Asset as JsbAsset } from './asset';
import type { AssetManager } from '../asset-manager';
import { ExtraEventMethods } from '../../core/utils/jsb-utils';

declare const jsb: any;

Expand All @@ -36,7 +37,7 @@ declare const jsb: any;
*/
export type CreateNodeCallback = (error: Error | null, node: Node) => void;

applyMixins(jsb.Asset, [CallbacksInvoker, jsbUtils.ExtraEventMethods]);
applyMixins(jsb.Asset, [CallbacksInvoker, ExtraEventMethods]);

const assetProto: any = jsb.Asset.prototype;

Expand Down

0 comments on commit 85d5f03

Please sign in to comment.