mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-10 22:36:58 +08:00
Initial commit: NOFX AI Trading System
- Multi-AI competition mode (Qwen vs DeepSeek) - Binance Futures integration - AI self-learning mechanism - Professional web dashboard - Complete risk management system
This commit is contained in:
14
web/node_modules/dom-helpers/esm/contains.js
generated
vendored
Normal file
14
web/node_modules/dom-helpers/esm/contains.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/* eslint-disable no-bitwise, no-cond-assign */
|
||||
|
||||
/**
|
||||
* Checks if an element contains another given element.
|
||||
*
|
||||
* @param context the context element
|
||||
* @param node the element to check
|
||||
*/
|
||||
export default function contains(context, node) {
|
||||
// HTML DOM and SVG DOM may have different support levels,
|
||||
// so we need to check on context instead of a document root element.
|
||||
if (context.contains) return context.contains(node);
|
||||
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
||||
}
|
||||
Reference in New Issue
Block a user