refactor(eslint): use cordova-eslint /w fix (#747)

This commit is contained in:
Tim Brust
2020-07-02 15:41:21 +00:00
committed by GitHub
parent bdbb1df44c
commit 7c2810e885
7 changed files with 621 additions and 314 deletions
+9 -9
View File
@@ -17,7 +17,7 @@
* specific language governing permissions and limitations
* under the License.
*
*/
*/
(function () {
var exec = require('cordova/exec');
@@ -27,19 +27,19 @@
function InAppBrowser () {
this.channels = {
'beforeload': channel.create('beforeload'),
'loadstart': channel.create('loadstart'),
'loadstop': channel.create('loadstop'),
'loaderror': channel.create('loaderror'),
'exit': channel.create('exit'),
'customscheme': channel.create('customscheme'),
'message': channel.create('message')
beforeload: channel.create('beforeload'),
loadstart: channel.create('loadstart'),
loadstop: channel.create('loadstop'),
loaderror: channel.create('loaderror'),
exit: channel.create('exit'),
customscheme: channel.create('customscheme'),
message: channel.create('message')
};
}
InAppBrowser.prototype = {
_eventHandler: function (event) {
if (event && (event.type in this.channels)) {
if (event && event.type in this.channels) {
if (event.type === 'beforeload') {
this.channels[event.type].fire(event, this._loadAfterBeforeload);
} else {