1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 22:47:59 +01:00
Commit Graph

18 Commits

Author SHA1 Message Date
Doug Kearns
6cc43ad29a Formatting fixes. 2009-11-14 21:57:32 +11:00
Kris Maglione
91fd0e1169 Get rid of absurd strict JS warnings. 2009-11-14 04:38:36 -05:00
Kris Maglione
a9e8d9d691 Make Option.validateCompleter the default validator: look out for minor breakage. 2009-11-13 21:50:06 -05:00
Doug Kearns
41b9c8e9a1 Formatting fixes. 2009-11-14 04:20:09 +11:00
Kris Maglione
6a25312c7d Recfactoring:
* Standard module format. All modules are explicitly declared
   as modules, they're created via a constructor and
   instantiated automatically. They're dependency aware. They
   stringify properly.

 * Classes are declared the same way (rather like Structs
   already were). They also stringify properly. Plus, each
   instance has a rather nifty closure member that closes all
   of its methods around 'this', so you can pass them to map,
   forEach, setTimeout, etc. Modules are themselves classes,
   with a special metaclass, as it were.

 * Doug Crockford is dead, metaphorically speaking.
   Closure-based classes just don't fit into any of the common
   JavaScript frameworks, and they're inefficient and
   confusing. Now, all class and module members are accessed
   explicitly via 'this', which makes it very clear that
   they're class members and not (e.g.) local variables,
   without anything nasty like Hungarian notation.

 * Strictly one module per file. Classes that belong to a
   module live in the same file.

 * For the moment, there are quite a few utility functions
   sitting in base.c, because my class implementation used
   them, and I haven't had the time or inclination to sort them
   out. I plan to reconcile them with the current mess that is
   the util namespace.

 * Changed bracing style.
2009-11-08 20:54:31 -05:00
Kris Maglione
1ce498401e Add liberator.assert. 2009-11-03 02:36:48 -05:00
Kris Maglione
ea90165a0f Minor copyright fixes. 2009-10-02 19:45:37 -04:00
Martin Stubenschrott
3910c0604b Move all files to a MIT license 2009-10-03 00:32:29 +02:00
Doug Kearns
cd474c1d6a Call the Sanitize autocommand when clearing each private item.
--HG--
extra : transplant_source : a%AB%B2%02%28R%3EM%E5%AC%7C%CB%18%2A%AA9%FEbt%09
2009-09-25 20:59:58 +10:00
Kris Maglione
4931f01353 Use options.allPrefs rather than nsIPrefBranch#getChildList 2009-09-23 01:09:11 -04:00
Doug Kearns
d46fe30d28 Use Option#parseValues in 'sanitizeitems' setter. 2009-09-23 04:22:49 +10:00
Doug Kearns
898a5dd965 Fix sanitizing range for non-liberator items. 2009-09-16 21:28:06 +10:00
Doug Kearns
b352a26a49 Make macros and marks sanitizeable. 2009-09-16 12:47:55 +10:00
Doug Kearns
a1f5c910ae Add a short option for :sanitize -timespan. 2009-09-16 12:47:47 +10:00
Kris Maglione
ed38331178 Respect 'sanitizetimespan' in command history sanitization. 2009-09-10 18:22:26 -04:00
Conrad Irwin
c116fcc76d Pass defaul to getPref for sanitizetimestamp
To prevent an exception being raised when it tries to set it to a null
value as default.
2009-09-07 22:19:46 +01:00
Doug Kearns
2d40fb6e28 Respect -timespan when sanitizing command-line history. 2009-09-06 03:20:57 +10:00
Doug Kearns
11b54186d5 Add :sanitize, 'sanitizetimespan' and 'sanitizeitems'. 2009-09-04 12:30:27 +10:00