MCPcopy
hub / github.com/ianstormtaylor/slate / withoutNormalizing

Method withoutNormalizing

packages/slate/src/controllers/editor.js:408–416  ·  view source on GitHub ↗

* Apply a series of changes inside a synchronous `fn`, deferring * normalization until after the function has finished executing. * * @param {Function} fn * @return {Editor}

(fn)

Source from the content-addressed store, hash-verified

406 */
407
408 withoutNormalizing(fn) {
409 const { controller } = this
410 const value = this.tmp.normalize
411 this.tmp.normalize = false
412 fn(controller)
413 this.tmp.normalize = value
414 normalizeDirtyPaths(this)
415 return controller
416 }
417
418 /**
419 * Deprecated.

Callers 8

applyOperationMethod · 0.95
withoutNormalizationMethod · 0.95
normalizeDirtyPathsFunction · 0.45
at-range.jsFile · 0.45
by-path.jsFile · 0.45
on-history.jsFile · 0.45
with-intent.jsFile · 0.45
VersionsClass · 0.45

Calls 1

normalizeDirtyPathsFunction · 0.85

Tested by

no test coverage detected