Ensure boolean return type

This commit is contained in:
Sebastián Katzer 2017-01-03 21:14:24 +01:00
parent 626776f60b
commit af5da60143

View File

@ -105,7 +105,7 @@ exports.disableWebViewOptimizations = function () {
* @return {Boolean}
*/
exports.isEnabled = function () {
return this._isEnabled;
return this._isEnabled !== false;
};
/**
@ -114,7 +114,7 @@ exports.isEnabled = function () {
* @return {Boolean}
*/
exports.isActive = function () {
return this._isActive;
return this._isActive !== false;
};