From 9757e970ee81b830269988b8c250c643be032b1d Mon Sep 17 00:00:00 2001
From: Alexander Rose <alex.rose@rcsb.org>
Date: Wed, 20 Feb 2019 14:23:40 -0800
Subject: [PATCH] added noop to utils

---
 src/mol-plugin/ui/controls/slider.tsx | 4 +---
 src/mol-util/index.ts                 | 2 ++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mol-plugin/ui/controls/slider.tsx b/src/mol-plugin/ui/controls/slider.tsx
index c807995fb..21aad5dd1 100644
--- a/src/mol-plugin/ui/controls/slider.tsx
+++ b/src/mol-plugin/ui/controls/slider.tsx
@@ -6,6 +6,7 @@
 
 import * as React from 'react'
 import { NumericInput } from './common';
+import { noop } from 'mol-util';
 
 export class Slider extends React.Component<{
     min: number,
@@ -184,9 +185,6 @@ function classNames(_classes: { [name: string]: boolean | number }) {
     return classes.join(' ');
 }
 
-function noop() {
-}
-
 function isNotTouchEvent(e: TouchEvent) {
     return e.touches.length > 1 || (e.type.toLowerCase() === 'touchend' && e.touches.length > 0);
 }
diff --git a/src/mol-util/index.ts b/src/mol-util/index.ts
index 9c1aa24bf..73d5c415b 100644
--- a/src/mol-util/index.ts
+++ b/src/mol-util/index.ts
@@ -14,6 +14,8 @@ import { Progress } from 'mol-task';
 export * from './value-cell'
 export { BitFlags, StringBuilder, UUID, Mask }
 
+export const noop = function () { };
+
 export function round(n: number, d: number) {
     let f = Math.pow(10, d)
     return Math.round(f * n) / f
-- 
GitLab