Added test for undefined text
SVN revision: 1927
This commit is contained in:
1 parent
9955b765fd
commit
8788270e06
1 file changed
+2
@@ -1,5 +1,7 @@
|
||||
function getSelection(text)
|
||||
{
|
||||
if (typeof text == 'undefined')
|
||||
return "";
|
||||
if (browser == 'MSIE') {
|
||||
sel = document.selection;
|
||||
rng = sel.createRange();
|
||||
|
||||
Reference in new issue
Block a user