mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-25 04:19:02 +08:00
refactoring
This commit is contained in:
parent
88806db558
commit
1431bc73b3
@ -1,4 +1,4 @@
|
||||
export default function (css: string) {
|
||||
export default function injectCSS(css: string) {
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
const style = document.createElement('style')
|
||||
style.type = 'text/css'
|
||||
|
@ -1,4 +1,4 @@
|
||||
export default function magicMethods (clazz: any) {
|
||||
export default function magicMethods(clazz: any) {
|
||||
const classHandler = Object.create(null)
|
||||
|
||||
classHandler.construct = (target: any, args: any) => {
|
||||
|
@ -1,3 +1,3 @@
|
||||
export default function minMax(value:number = 0, min:number = 0, max:number = 0): number {
|
||||
export default function minMax(value: number = 0, min: number = 0, max: number = 0): number {
|
||||
return Math.min(Math.max(value, min), max)
|
||||
}
|
Loading…
Reference in New Issue
Block a user