isCollapsed: function() {  var _window = dojo.global(); var _document = dojo.doc(); if(_document["selection"]){ return _document.selection.createRange().text == ""; }else if(_window["getSelection"]){ var selection = _window.getSelection(); if(dojo.lang.isString(selection)){ return selection == ""; }else{ return selection.isCollapsed || selection.toString() == ""; } } }, 
},isCollapsed:function(){ var _81c=dojo.global(); var _81d=dojo.doc(); if(_81d["selection"]){ return _81d.selection.createRange().text==""; }else{ if(_81c["getSelection"]){ var _81e=_81c.getSelection(); if(dojo.lang.isString(_81e)){ return _81e==""; }else{ return _81e.isCollapsed||_81e.toString()==""; } } } },getSelectedElement:function(){ 
  isCollapsed: function() {    // summary: return whether the current selection is empty    var _window = dojo.global();    var _document = dojo.doc();    if(_document["selection"]){ // IE      return _document.selection.createRange().text == "";    }else if(_window["getSelection"]){      var selection = _window.getSelection();      if(dojo.lang.isString(selection)){ // Safari        return selection == "";      }else{ // Mozilla/W3        return selection.isCollapsed || selection.toString() == "";      }    }  },
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js