|
|
@ -98,7 +98,7 @@
|
|
|
|
var onOff = off ? 'removeEventListener' : 'addEventListener',
|
|
|
|
var onOff = off ? 'removeEventListener' : 'addEventListener',
|
|
|
|
focusListener = function(e) {
|
|
|
|
focusListener = function(e) {
|
|
|
|
var input = this,
|
|
|
|
var input = this,
|
|
|
|
position = {left: input.offsetLeft, top: input.offsetTop},
|
|
|
|
position = window.ColorPicker.getOrigin(input),
|
|
|
|
index = multiple ? Array.prototype.indexOf.call(elms, this) : 0,
|
|
|
|
index = multiple ? Array.prototype.indexOf.call(elms, this) : 0,
|
|
|
|
colorPicker = colorPickers[index] ||
|
|
|
|
colorPicker = colorPickers[index] ||
|
|
|
|
(colorPickers[index] = createInstance(this, config)),
|
|
|
|
(colorPickers[index] = createInstance(this, config)),
|
|
|
|