#382 typo on typeof function check
This commit is contained in:
parent
2c72173366
commit
c29bcba5ff
|
@ -206,7 +206,7 @@ textmode.create = function (container, options) {
|
||||||
|
|
||||||
var emptyNode = {};
|
var emptyNode = {};
|
||||||
var isReadOnly = (this.options.onEditable
|
var isReadOnly = (this.options.onEditable
|
||||||
&& typeof(this.options.onEditable === 'Function')
|
&& typeof(this.options.onEditable === 'function')
|
||||||
&& !this.options.onEditable(emptyNode));
|
&& !this.options.onEditable(emptyNode));
|
||||||
|
|
||||||
this.textarea.readOnly = isReadOnly;
|
this.textarea.readOnly = isReadOnly;
|
||||||
|
|
Loading…
Reference in New Issue