Use String#include wherever possible.

This commit is contained in:
Tobie Langel 2007-10-22 22:16:32 +00:00
parent 16127b024a
commit 4dece6b277
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
*SVN*
* Use String#include wherever possible.
* In IE, allow opacity to be set on elements not yet attached to the document. Closes #9904. [Thomas Fuchs, dcpedit, Tobie Langel]
* Avoid the try..catch block in Ajax.Response#_getResponseJSON unless required. [Tobie Langel]

View File

@ -133,7 +133,7 @@ Object.extend(Event, (function() {
}
function getDOMEventName(eventName) {
if (eventName && eventName.match(/:/)) return "dataavailable";
if (eventName && eventName.include(':')) return "dataavailable";
return eventName;
}