onejs-core 2.0.16 → 2.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/augments.d.ts +14 -8
- package/dist/dom/dom.js +1 -1
- package/dom/dom.ts +1 -1
- package/package.json +1 -1
|
@@ -33,15 +33,21 @@ declare global {
|
|
|
33
33
|
const requestAnimationFrame: (callback: (time: number) => void) => number
|
|
34
34
|
const cancelAnimationFrame: (id: number) => void
|
|
35
35
|
|
|
36
|
+
interface Performance {
|
|
37
|
+
now(): number
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const performance: Performance
|
|
41
|
+
|
|
36
42
|
const console: {
|
|
37
|
-
log: (...args: any[]) => void
|
|
38
|
-
info: (...args: any[]) => void
|
|
39
|
-
warn: (...args: any[]) => void
|
|
40
|
-
error: (...args: any[]) => void
|
|
41
|
-
trace: (...args: any[]) => void
|
|
42
|
-
assert: (condition: boolean, ...args: any[]) => void
|
|
43
|
-
time: (label: string) => void
|
|
44
|
-
timeEnd: (label: string) => void
|
|
43
|
+
log: (...args: any[]) => void
|
|
44
|
+
info: (...args: any[]) => void
|
|
45
|
+
warn: (...args: any[]) => void
|
|
46
|
+
error: (...args: any[]) => void
|
|
47
|
+
trace: (...args: any[]) => void
|
|
48
|
+
assert: (condition: boolean, ...args: any[]) => void
|
|
49
|
+
time: (label: string) => void
|
|
50
|
+
timeEnd: (label: string) => void
|
|
45
51
|
}
|
|
46
52
|
|
|
47
53
|
interface Event {
|
package/dist/dom/dom.js
CHANGED
|
@@ -178,7 +178,7 @@ function parseSelector(selector) {
|
|
|
178
178
|
}
|
|
179
179
|
function elementMatchesSelector(element, selectorInfo) {
|
|
180
180
|
// Check tag name
|
|
181
|
-
if (selectorInfo.tag && element.ve.
|
|
181
|
+
if (selectorInfo.tag && element.ve.GetType().Name.toLowerCase() !== selectorInfo.tag) {
|
|
182
182
|
return false;
|
|
183
183
|
}
|
|
184
184
|
// Check ID
|
package/dom/dom.ts
CHANGED
|
@@ -213,7 +213,7 @@ function parseSelector(selector: string): SelectorInfo {
|
|
|
213
213
|
|
|
214
214
|
function elementMatchesSelector(element: DomWrapper, selectorInfo: SelectorInfo): boolean {
|
|
215
215
|
// Check tag name
|
|
216
|
-
if (selectorInfo.tag && element.ve.
|
|
216
|
+
if (selectorInfo.tag && element.ve.GetType().Name.toLowerCase() !== selectorInfo.tag) {
|
|
217
217
|
return false;
|
|
218
218
|
}
|
|
219
219
|
|
package/package.json
CHANGED