mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 14:50:20 +08:00
Update SednaLib.js
This commit is contained in:
parent
daa405a347
commit
f0c29f26dd
@ -32,14 +32,6 @@ HTMLElement.prototype.qsa = function(STR){
|
||||
return this.querySelectorAll(STR);
|
||||
}
|
||||
|
||||
Array.prototype.inArray = function(ARGUMENT){
|
||||
if(this.indexOf(ARGUMENT) != -1){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/* --------- Полезные функции --------- */
|
||||
Math.clamp = function(number, min, max) {//Ограничение диапазона
|
||||
return Math.max(min, Math.min(number, max));
|
||||
@ -109,4 +101,4 @@ function $Add(TAG, PARENT, SET){
|
||||
SET = null;
|
||||
$Append(result, PARENT);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user