Permalink
Browse files

Fix Text Entry crash on HTML5

As the text entry object has no real renderable object, PIXI (only tested this renderer) crash trying to set the renderable object on Z-Order and Layer updates, a better solution is welcomed :)
  • Loading branch information...
Lizard-13 committed Jun 17, 2017
1 parent 7dbd836 commit 525ea4b042e96ce06ce7209c8951fe4ee4fdd899
Showing with 8 additions and 0 deletions.
  1. +8 −0 Extensions/TextEntryObject/textentryruntimeobject.js
@@ -56,3 +56,11 @@ gdjs.TextEntryRuntimeObject.prototype.activate = function(enable) {
this._activated = enable;
this._renderer.activate(this._activated);
};
gdjs.TextEntryRuntimeObject.prototype.setLayer = function(layer) {
// No renderable object
};
gdjs.TextEntryRuntimeObject.prototype.setZOrder = function(z) {
// No renderable object
};

0 comments on commit 525ea4b

Please sign in to comment.