1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 16:04:14 +01:00

added 2 more things to the style guide

This commit is contained in:
Martin Stubenschrott
2009-01-03 14:49:16 +01:00
parent b20f740d30
commit 7bf0481345

View File

@@ -24,3 +24,9 @@ We try to be quite consistent, but of course, that's not always possible.
setTimeout(function () {
...
});
* Prefer // over /* */ comments (exceptions for big comments are usually ok)
Right: if (HACK) // TODO: remove hack
Wrong: if (HACK) /* TODO: remove hack */
* Use UNIX new lines (\n), not windows (\r\n) or old Mac ones (\r)