mirror of https://github.com/axmolengine/axmol.git
Fix JS AssetsManagerTest and Improve scheduler wrapper (#16605)
* Fix tests for v3.12 web * Improve scheduler wrapper * Update web engine ref
This commit is contained in:
parent
59574f95e0
commit
466053b740
|
@ -1271,10 +1271,14 @@ void JSScheduleWrapper::scheduleFunc(float dt)
|
||||||
{
|
{
|
||||||
JS::HandleValueArray args = JS::HandleValueArray::fromMarkedLocation(1, &data);
|
JS::HandleValueArray args = JS::HandleValueArray::fromMarkedLocation(1, &data);
|
||||||
JS::RootedValue retval(cx);
|
JS::RootedValue retval(cx);
|
||||||
JS::RootedObject target(cx, getJSCallbackThis().toObjectOrNull());
|
JS::RootedValue targetVal(cx, getJSCallbackThis());
|
||||||
|
if (!targetVal.isNullOrUndefined())
|
||||||
|
{
|
||||||
|
JS::RootedObject target(cx, targetVal.toObjectOrNull());
|
||||||
JS_CallFunctionValue(cx, target, callback, args, &retval);
|
JS_CallFunctionValue(cx, target, callback, args, &retval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void JSScheduleWrapper::update(float dt)
|
void JSScheduleWrapper::update(float dt)
|
||||||
|
|
|
@ -199,7 +199,7 @@ var AssetsManagerLoaderScene = TestScene.extend({
|
||||||
layer.addChild(this._fileLoadingBar);
|
layer.addChild(this._fileLoadingBar);
|
||||||
|
|
||||||
this._am = new jsb.AssetsManager(manifestPath, storagePath);
|
this._am = new jsb.AssetsManager(manifestPath, storagePath);
|
||||||
// this._am.retain();
|
this._am.retain();
|
||||||
|
|
||||||
if (!this._am.getLocalManifest().isLoaded())
|
if (!this._am.getLocalManifest().isLoaded())
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,10 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
body, canvas, div {
|
body, canvas, div {
|
||||||
|
display: block;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||||
|
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
|
|
2
web
2
web
|
@ -1 +1 @@
|
||||||
Subproject commit cff01472af3f1203e4422ee84615e8fb3de9f9c5
|
Subproject commit e10208255f9eae2c25db5e04e395f4258406dbcd
|
Loading…
Reference in New Issue