codemirror-colorpicker
Advanced tools
Comparing version 1.9.45 to 1.9.46
{ | ||
"name": "codemirror-colorpicker", | ||
"version": "1.9.45", | ||
"version": "1.9.46", | ||
"description": "simple colorpicker used anywhere", | ||
@@ -5,0 +5,0 @@ "main": "./dist/codemirror-colorpicker.js", |
@@ -5,7 +5,6 @@ import CodeMirror from 'codemirror' | ||
const CHECK_CODEMIRROR_OBJECT = () => (CodeMirror || window.CodeMirror); | ||
const CHECK_CODEMIRROR_LOAD_TIME = window.CHECK_CODEMIRROR_LOAD_TIME || 10; | ||
function LOAD_CODEMIRROR_COLORPICKER () { | ||
var CODEMIRROR_OBJECT = CHECK_CODEMIRROR_OBJECT(); | ||
if (CODEMIRROR_OBJECT) { | ||
CODEMIRROR_OBJECT.defineOption("colorpicker", false, function (cm, val, old) { | ||
@@ -28,4 +27,2 @@ if (old && old != CODEMIRROR_OBJECT.Init) { | ||
}); | ||
} else { | ||
setTimeout(LOAD_CODEMIRROR_COLORPICKER, CHECK_CODEMIRROR_LOAD_TIME); | ||
} | ||
@@ -35,2 +32,6 @@ | ||
LOAD_CODEMIRROR_COLORPICKER() | ||
LOAD_CODEMIRROR_COLORPICKER() | ||
export default { | ||
load: LOAD_CODEMIRROR_COLORPICKER | ||
} |
@@ -5,3 +5,3 @@ import './scss/index.scss' | ||
import ColorPicker from './colorpicker/index' | ||
import './extension/codemirror/index' | ||
import CodeMirrorExtension from './extension/codemirror/index' | ||
@@ -11,3 +11,4 @@ | ||
...Util, | ||
...ColorPicker | ||
...ColorPicker, | ||
...CodeMirrorExtension | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
28936
2014111