mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
LibJS: Prefer FunctionDeclaration if a statement begins with "function"
This commit is contained in:
parent
1a10470c1d
commit
73d28a0551
2 changed files with 4 additions and 7 deletions
|
@ -2,10 +2,9 @@
|
|||
<html>
|
||||
<head>
|
||||
<script>
|
||||
function foo() {
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
alert("It loaded!");
|
||||
}
|
||||
document.addEventListener("DOMContentLoaded", foo);
|
||||
);
|
||||
|
||||
function on_mousedown() {
|
||||
alert("Mouse down!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue