Commit f90685b8 authored by Regis's avatar Regis

remove bitwise - make code human readable

parent bab8af9b
/* global Vue, Flash, gl */
/* eslint-disable no-param-reassign, no-bitwise */
/* eslint-disable no-param-reassign */
((gl) => {
gl.VueStage = Vue.extend({
......@@ -40,11 +40,11 @@
keepGraph(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 (
target.parentElement &&
~target.parentElement.className.indexOf('js-ci-action-icon')
(target.parentElement.className.indexOf('js-ci-action-icon') >= 0)
) return null;
return e.stopPropagation();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment