Remove redundant ternary.

This commit is contained in:
Juriy Zaytsev 2009-11-12 21:15:52 -05:00
parent 1f167f8754
commit f40fd5a7d6
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
* Remove redundant ternary. (kangax)
* Avoid repeating declaration statements where it makes sense, for slightly better runtime performance and minification. (kangax)
* Make `Event.stopObserving` return element in all cases. [#810 state:resolved] (Yaffle, Tobie Langel)

View File

@ -483,7 +483,7 @@ Object.extend(String.prototype, (function() {
truncate: truncate,
// Firefox 3.5+ supports String.prototype.trim
// (`trim` is ~ 5x faster than `strip` in FF3.5)
strip: String.prototype.trim ? String.prototype.trim : strip,
strip: String.prototype.trim || strip,
stripTags: stripTags,
stripScripts: stripScripts,
extractScripts: extractScripts,