"_resizeText" is undefined on creator v2.2.2

"_resizeText" is undefined on creator v2.2.2

Hello everyone,

On mobile web mode, there is a method called “_resizeEvent”.
I noticed that this event occurs every time you change the device orientation.
Inside it the is the following method:

cc.view.setResizeCallback(function() {
    this._resizeText(); // This method throws error

Please review print screen:

In short:
The this._resizeText(); is undefined.

in this._resizeText(); this refers to window object. on window object there is no method defined as _resizeText();

Yes I know. But why the code of Cocos is generating this? A Bug maybe?

I have not used 2.2.2.
for quick fix do window._resizeText = function(){}