MCPcopy Create free account
hub / github.com/dataease/SQLBot / freeze

Method freeze

frontend/public/swagger-ui-bundle.js:5041–5050  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5039 ;(o && (this.meta = o), i && (this.attributes = i), (this.content = s))
5040 }
5041 freeze() {
5042 Object.isFrozen(this) ||
5043 (this._meta && ((this.meta.parent = this), this.meta.freeze()),
5044 this._attributes && ((this.attributes.parent = this), this.attributes.freeze()),
5045 this.children.forEach((s) => {
5046 ;((s.parent = this), s.freeze())
5047 }, this),
5048 this.content && Array.isArray(this.content) && Object.freeze(this.content),
5049 Object.freeze(this))
5050 }
5051 primitive() {}
5052 clone() {
5053 const s = new this.constructor()

Callers 11

getMetaPropertyMethod · 0.80
metaMethod · 0.80
attributesMethod · 0.80
deepFreezeFunction · 0.80
gaFunction · 0.80
rFunction · 0.80
haFunction · 0.80
tinymce.min.jsFile · 0.80
filesFunction · 0.80
theme.min.jsFile · 0.80

Calls 3

isFrozenMethod · 0.80
forEachMethod · 0.45
isArrayMethod · 0.45

Tested by

no test coverage detected