that.[0] -> that[0]

This commit is contained in:
rlx 2014-09-24 20:15:55 +02:00
parent 763f256e12
commit f8336fc2c4

View file

@ -213,10 +213,10 @@ Ox.EditableContent = function(options, self) {
function updateSelection() { function updateSelection() {
var range = document.createRange(), var range = document.createRange(),
selection = window.getSelection(); selection = window.getSelection();
that.$element[0].focus(); that[0].focus();
if (self.options.collapseToEnd) { if (self.options.collapseToEnd) {
selection.removeAllRanges(); selection.removeAllRanges();
range.selectNodeContents(that.$element[0]); range.selectNodeContents(that[0]);
selection.addRange(range); selection.addRange(range);
} }
setTimeout(function() { setTimeout(function() {