Quicktags: fix int/string strict comparison, see #26046.

Built from https://develop.svn.wordpress.org/trunk@26553


git-svn-id: http://core.svn.wordpress.org/trunk@26444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2013-12-03 04:21:09 +00:00
parent 3b706af9c3
commit b88583c567
2 changed files with 3 additions and 3 deletions

View File

@ -373,7 +373,7 @@ function edButton(id, display, tagStart, tagEnd, access) {
sel = document.selection.createRange();
sel.text = content;
canvas.focus();
} else if ( canvas.selectionStart || canvas.selectionStart === '0' ) { // FF, WebKit, Opera
} else if ( canvas.selectionStart || canvas.selectionStart === 0 ) { // FF, WebKit, Opera
text = canvas.value;
startPos = canvas.selectionStart;
endPos = canvas.selectionEnd;
@ -472,7 +472,7 @@ function edButton(id, display, tagStart, tagEnd, access) {
}
}
canvas.focus();
} else if ( canvas.selectionStart || canvas.selectionStart === '0' ) { // FF, WebKit, Opera
} else if ( canvas.selectionStart || canvas.selectionStart === 0 ) { // FF, WebKit, Opera
startPos = canvas.selectionStart;
endPos = canvas.selectionEnd;
cursorPos = endPos;

File diff suppressed because one or more lines are too long