mirror of
https://github.com/Heretek-AI/GDevelop-Heretek.git
synced 2026-10-12 02:02:42 +00:00
Rename ownerRemovedFromScene to onOwnerRemovedFromScene
This commit is contained in:
@@ -12,7 +12,7 @@ gdjs.TextEntryRuntimeObjectCocosRenderer = function(runtimeObject, runtimeScene)
|
||||
|
||||
gdjs.TextEntryRuntimeObjectRenderer = gdjs.TextEntryRuntimeObjectCocosRenderer; //Register the class to let the engine use it.
|
||||
|
||||
gdjs.TextEntryRuntimeObjectCocosRenderer.prototype.ownerRemovedFromScene = function() {
|
||||
gdjs.TextEntryRuntimeObjectCocosRenderer.prototype.onOwnerRemovedFromScene = function() {
|
||||
this.activate(false);
|
||||
};
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ gdjs.TextEntryRuntimeObjectPixiRenderer = function(runtimeObject)
|
||||
|
||||
gdjs.TextEntryRuntimeObjectRenderer = gdjs.TextEntryRuntimeObjectPixiRenderer; //Register the class to let the engine use it.
|
||||
|
||||
gdjs.TextEntryRuntimeObjectPixiRenderer.prototype.ownerRemovedFromScene = function() {
|
||||
gdjs.TextEntryRuntimeObjectPixiRenderer.prototype.onOwnerRemovedFromScene = function() {
|
||||
document.removeEventListener('keypress', this._pressHandler);
|
||||
document.removeEventListener('keyup', this._upHandler);
|
||||
document.removeEventListener('keydown', this._downHandler);
|
||||
|
||||
@@ -28,8 +28,8 @@ gdjs.TextEntryRuntimeObject.thisIsARuntimeObjectConstructor = "TextEntryObject::
|
||||
gdjs.TextEntryRuntimeObject.prototype.onDeletedFromScene = function(runtimeScene) {
|
||||
gdjs.RuntimeObject.prototype.onDeletedFromScene.call(this, runtimeScene);
|
||||
|
||||
if (this._renderer.ownerRemovedFromScene) {
|
||||
this._renderer.ownerRemovedFromScene();
|
||||
if (this._renderer.onOwnerRemovedFromScene) {
|
||||
this._renderer.onOwnerRemovedFromScene();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user