mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-14 16:02:23 +08:00
Refactor array-clearing logic across the codebase by replacing `.clear()` with `.length = 0` for improved clarity and compatibility with standard JavaScript arrays. Updated relevant tests and utilities to ensure consistency. These changes align array management with modern JavaScript practices while preserving existing functionality. |
||
|---|---|---|
| .. | ||
| emoji | ||
| allow-lister.js | ||
| censored-words.js | ||
| emoji.js | ||
| guid.js | ||
| inline-oneboxer.js | ||
| mentions.js | ||
| oneboxer-cache.js | ||
| oneboxer.js | ||
| pretty-text.js | ||
| sanitizer.js | ||
| text-replace.js | ||
| upload-short-url.js | ||