Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11568: 0013-Should-not-throw-error-when-string-is-malformed.patch

File 0013-Should-not-throw-error-when-string-is-malformed.patch, 0.6 kB (added by kangax, 3 months ago)
  • a/src/dom.js

    old new  
    55    return elements; 
    66  } 
    77  if (Object.isString(element)) 
    8     element = document.getElementById(element); 
     8    element = document.getElementById(element || ''); 
    99  return Element.extend(element); 
    1010} 
    1111