Remove redundant ternary.
This commit is contained in:
parent
1f167f8754
commit
f40fd5a7d6
@ -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)
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user