mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 06:31:28 +02:00
Remove old validate methods
This commit is contained in:
@@ -1290,19 +1290,7 @@ const Node = {
|
|||||||
} else {
|
} else {
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Validate the node against a `schema`.
|
|
||||||
*
|
|
||||||
* @param {Schema} schema
|
|
||||||
* @return {Object || Void}
|
|
||||||
*/
|
|
||||||
|
|
||||||
validate(schema) {
|
|
||||||
return schema.__validate(this)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1356,8 +1344,7 @@ memoize(Node, [
|
|||||||
'hasChild',
|
'hasChild',
|
||||||
'hasDescendant',
|
'hasDescendant',
|
||||||
'hasVoidParent',
|
'hasVoidParent',
|
||||||
'isInlineSplitAtRange',
|
'isInlineSplitAtRange'
|
||||||
'validate'
|
|
||||||
])
|
])
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -328,18 +328,6 @@ class Text extends new Record(DEFAULTS) {
|
|||||||
|
|
||||||
return this.merge({ characters })
|
return this.merge({ characters })
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Validate the node against a `schema`.
|
|
||||||
*
|
|
||||||
* @param {Schema} schema
|
|
||||||
* @return {Object || Void}
|
|
||||||
*/
|
|
||||||
|
|
||||||
validate(schema) {
|
|
||||||
return schema.__validate(this)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -349,8 +337,7 @@ class Text extends new Record(DEFAULTS) {
|
|||||||
memoize(Text.prototype, [
|
memoize(Text.prototype, [
|
||||||
'getDecorations',
|
'getDecorations',
|
||||||
'getDecorators',
|
'getDecorators',
|
||||||
'getRanges',
|
'getRanges'
|
||||||
'validate',
|
|
||||||
])
|
])
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user