lockOrientation

I have a question about an orientation.

I call
this.scale.lockOrientation(‘portrait’);
from ‘create()’ in scene inherited class.

Then the error
TypeError: ‘mozLockOrientation’ called on an object that does not implement interface Screen.
is caused by FireFoxDeveloperEditoin and Chrome.

Does the lock method work or I call it the wrong way?