Steven Silvester 8 éve
szülő
commit
b2296185d4
3 módosított fájl, 5 hozzáadás és 9 törlés
  1. 3 3
      src/common/dom.ts
  2. 1 5
      src/common/instancetracker.ts
  3. 1 1
      src/common/observablevector.ts

+ 3 - 3
src/common/dom.ts

@@ -2,8 +2,8 @@
 // Distributed under the terms of the Modified BSD License.
 
 import {
-  hitTest
-} from 'phosphor/lib/dom/query';
+  ElementExt
+} from '@phosphor/domutils';
 
 
 /**
@@ -12,7 +12,7 @@ import {
 export
 function hitTestNodes(nodes: HTMLElement[] | NodeList, x: number, y: number): number {
   for (let i = 0, n = nodes.length; i < n; ++i) {
-    if (hitTest(nodes[i] as HTMLElement, x, y)) {
+    if (ElementExt.hitTest(nodes[i] as HTMLElement, x, y)) {
       return i;
     }
   }

+ 1 - 5
src/common/instancetracker.ts

@@ -2,13 +2,9 @@
 // Distributed under the terms of the Modified BSD License.
 
 import {
-  each
+  each, find
 } from '@phosphor/algorithm';
 
-import {
-  find
-} from 'phosphor/lib/algorithm/searching';
-
 import {
   IDisposable
 } from '@phosphor/disposable';

+ 1 - 1
src/common/observablevector.ts

@@ -2,7 +2,7 @@
 // Distributed under the terms of the Modified BSD License.
 
 import {
-  ArrayExt, IterableOrArrayLike, each, toArray
+  ArrayExt, IIterator, IterableOrArrayLike, each, toArray
 } from '@phosphor/algorithm';
 
 import {