remove bitwise - make code human readable

This commit is contained in:
Regis 2017-01-20 09:07:02 -07:00
parent bab8af9bc4
commit f90685b8d5

View file

@ -1,5 +1,5 @@
/* global Vue, Flash, gl */ /* global Vue, Flash, gl */
/* eslint-disable no-param-reassign, no-bitwise */ /* eslint-disable no-param-reassign */
((gl) => { ((gl) => {
gl.VueStage = Vue.extend({ gl.VueStage = Vue.extend({
@ -40,11 +40,11 @@
keepGraph(e) { keepGraph(e) {
const { target } = e; const { target } = e;
if (~target.className.indexOf('js-ci-action-icon')) return null; if (target.className.indexOf('js-ci-action-icon') >= 0) return null;
if ( if (
target.parentElement && target.parentElement &&
~target.parentElement.className.indexOf('js-ci-action-icon') (target.parentElement.className.indexOf('js-ci-action-icon') >= 0)
) return null; ) return null;
return e.stopPropagation(); return e.stopPropagation();