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

14 Commits

Author SHA1 Message Date
Kris Maglione
cdaa26f968 Add 'javascript' module. Misc fixes along the way. 2009-11-15 02:08:10 -05:00
Kris Maglione
a72068c9f7 Refactor modules.config. 2009-11-09 03:12:27 -05: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
Martin Stubenschrott
3910c0604b Move all files to a MIT license 2009-10-03 00:32:29 +02:00
Doug Kearns
6d7b94daa6 Add missing semicolons. 2009-06-02 16:59:24 +10:00
Kris Maglione
7f90cdcb6f Fix idiosyncratic module loading bug. 2009-05-25 11:19:13 -04:00
Kris Maglione
b8aab050e9 Remove some config.name checks. Add configbase module. 2009-05-23 21:10:32 -04:00
Doug Kearns
cb0f542e94 Rename Search to Finder.
Search generally refers to web searches in this domain and mixing
"search" and "find" within the same module is very confusing.
2009-05-11 17:53:33 +10:00
Kris Maglione
89698e3e05 s/service[(".*?")]/services.get(\1)/g; s/service.get(\w+)/'services.create("' + lcfirst($1) + '")'/ge 2008-12-23 15:07:48 -05:00
Kris Maglione
872d03808e Add $VIMPERATOR_RUNTIME, $VIMPERATOR_INIT, ~/.vimperator/info/{profile}. 2008-12-20 18:34:14 -05:00
Doug Kearns
d60c81ef23 add missing semicolons 2008-12-19 23:00:14 +11:00
Martin Stubenschrott
2a4352b868 fixed muttator with Cc/Ci 2008-12-17 02:03:39 +01:00
Kris Maglione
18d4f74b6e Cc/Ci/Cr/Cu 2008-12-16 19:12:04 -05:00
Daniel Bainton
729854c749 Rename liberator/ to common/ 2008-12-04 07:56:35 +02:00