Bug 1084156 wifi init added power saving mode and allow off flag.

Should be  "if(this.allowOff) {"

Comparison is a little bit different from C/C++. You can refer to  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators for further information.