src/basis/dom.js
function focus(node, select){
    // try catch block here because browsers throw unexpected exeption in some cases
    try {
      node = get(node);
      node.focus();
      if (select && node.select) // && typeof node.select == 'function'
                                 // temporary removed because IE returns 'object' for DOM object methods, instead of 'function'
        node.select();
    } catch(e) {}
  }
function focus(node, select){
    // try catch block here because browsers throw unexpected exeption in some cases
    try {
      node = get(node);
      node.focus();
      if (select && node.select) // && typeof node.select == 'function'
                                 // temporary removed because IE returns 'object' for DOM object methods, instead of 'function'
        node.select();
    } catch(e) {}
  }
function focus ( node , select ) { // try catch block here because browsers throw unexpected exeption in some cases try { node = get ( node ) ; node . focus ( ) ; if ( select && node . select ) // && typeof node.select == 'function' // temporary removed because IE returns 'object' for DOM object methods, instead of 'function' node . select ( ) ; } catch ( e ) { } }
Input selection stuff  
Set focus for node.
@param {Element} node
@param {boolean=} select Call select() method of node.
Input selection stuff Set focus for node .