1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-26 08:01:24 +02:00
Commit Graph

83 Commits

Author SHA1 Message Date
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 d4b818b7d7 Yay XPCSafeJSObjectWrapper. 2009-11-03 06:11:53 -05:00
Kris Maglione 8224540d26 Check for existence of base64(1) before 'make dist' 2009-11-02 16:49:52 -05:00
Kris Maglione 108f467fe4 Completely HTML-ize help transforms. Add intentionally undocumented :exporthelp. 2009-11-02 00:18:58 -05:00
Kris Maglione 7a9889b18c Add IO#File.
New review:
owner: dougkearns
I like this for the most part, except that it has to go to lengths
to wrap the original nsIFile correctly, an that it can't be passed
directly to other XPCOM components. It makes most operations on
files a lot cleaner, though.
2009-10-31 17:40:16 -04:00
Kris Maglione 1350701eec Update util.generateHelp. 2009-10-28 17:38:06 -04:00
Kris Maglione 18e414f180 Take a crack at killing security warnings. Fail miserably. Keep the new code because it's a bit nicer.
--HG--
branch : xslt
2009-10-26 04:31:54 -04:00
Kris Maglione 2add32c3f2 Fix completion preview error in 3.6a2
--HG--
extra : rebase_source : 33da194d4dc35758f42183b0969132289d9594cc
2009-10-24 05:49:45 -04:00
Kris Maglione 9ef122da08 Simplify feed auto-detection code.
--HG--
extra : rebase_source : 70d362bc1b442c52336a34038fc2facc2f460c8c
2009-10-15 18:09:55 -04:00
Doug Kearns 9b0e6ac28b Move an inline style from util.objectToString to a new Key highlight group. 2009-10-16 00:28:27 +11:00
Martin Stubenschrott 3910c0604b Move all files to a MIT license 2009-10-03 00:32:29 +02:00
Doug Kearns 4daa9ace53 Add util.makeXPath for constructing XPath expressions.
--HG--
extra : transplant_source : G%A7_%1B%9B%7BN%9C%FF%14%A9g%BA%04%99%B3%8B%23%ED%F2
2009-09-25 15:57:20 +10:00
Doug Kearns dbc99ad956 Revert "Move util.Array to modules.Array_."
This reverts commit d6cdda48a18c9fa05365b50046470fec9935fd3c.

Array_ method chaining needs fixing.
2009-09-15 13:20:06 +10:00
Doug Kearns 7c66dc2b17 Move util.Array to modules.Array_. 2009-09-14 15:19:56 +10:00
Doug Kearns c958616337 Formatting fixes. 2009-08-27 14:46:30 +10:00
Doug Kearns 7e7e68e1eb Formatting fixes. 2009-08-21 23:57:40 +10:00
Kris Maglione 9d77c018ca Fix something to do with <a>. 2009-08-19 14:03:14 -04:00
Doug Kearns b6d3f7ef99 Remove some trailing commas. 2009-08-10 02:21:47 +10:00
Doug Kearns 77458e5b8a Whitespace and semicolon fixes. 2009-08-10 02:15:23 +10:00
Doug Kearns c82140ca51 Missing semicolon. 2009-07-23 00:34:19 +10:00
Kris Maglione 842dd61f4c Add [c]:toolbaropen[c], [c]:toolbarclose[c], and [c]:toolbartoggle[c]. 2009-07-21 22:18:15 -04:00
Kris Maglione a7de8b8cd0 Add favicons to :ba and :fo 2009-07-21 14:48:40 -04:00
Conrad Irwin 4a70d7c097 ":set urloperator=" will turn off splitting
used to go into infinite loop
2009-07-12 13:54:58 +01:00
Doug Kearns f9ffc9138a Cleanup and add some documention. 2009-06-29 19:22:09 +10:00
Doug Kearns e2e31528e2 Normalise the use of "func" vs "fn" for function references.
"func" had the numbers.
2009-06-29 19:09:08 +10:00
Kris Maglione 3628ff8803 Fix 'hinttags'. 2009-06-28 23:57:24 -04:00
Kris Maglione 7c7710b23d Cleanup default 'hinttags' definition a bit 2009-06-28 14:46:23 -04:00
Kris Maglione 55164325df Don't save storage objects while in private mode, restore them on exit. 2009-06-28 14:37:23 -04:00
Doug Kearns 776f9bb425 Cleanup some references to "Firefox" in common/*. 2009-06-28 16:03:23 +10:00
Doug Kearns 6d7b94daa6 Add missing semicolons. 2009-06-02 16:59:24 +10:00
Doug Kearns 95dffaf95a Add util.Math.constrain. 2009-06-02 16:58:20 +10:00
Doug Kearns 64a9c9554c Fix more function formatting faux pas as per the style guide. 2009-06-01 16:46:09 +10:00
Doug Kearns cd3364197f Fix some minor function formatting faux pas. 2009-06-01 16:46:07 +10:00
Kris Maglione 474ce30ada Minor cleanup/we like symlinks. 2009-05-28 15:03:47 -04:00
Kris Maglione 43537025c6 Some esthetic and practical changes to modes and a couple of completion functions. 2009-05-05 17:23:04 -04:00
Kris Maglione 01a8844d96 Revert "Fix #258: :set urlseparator= results in infinite loop"
This reverts commit e0f50f4eef07670f5c4ece8496785f6683236dc8.
2009-05-01 17:49:41 -04:00
Kris Maglione e5dc623247 Fix #258: :set urlseparator= results in infinite loop 2009-05-01 14:26:23 -04:00
Doug Kearns 6b9564635a Source formatting fixes *yawn*. 2009-04-30 22:21:35 +10:00
anekos bfdd83547c Fix: The instances of Document have not "localName" property. 2009-04-24 19:50:21 +09:00
Kris Maglione 2f753b6d27 Fix #247 2009-04-22 13:15:56 -04:00
Kris Maglione f3f70d5cb8 General cleanup related to last commit. 2009-04-15 16:31:32 -04:00
Martin Stubenschrott 26ad70541a fix space stripping of urls 2009-04-08 20:49:17 +02:00
Martin Stubenschrott 5ab1771e3c changed my email address 2009-03-28 23:38:33 +01:00
Conrad Irwin d6238f84a4 Treat strings containing / as URLs
In lieu of getting proper hostname detection, allow localhost/ and other
similar URLs to work.
2009-03-25 01:58:39 +00:00
Conrad Irwin b4b62fc836 Fix #141 by not splitting URLs on quoted commas.
Added a new function util.splitLiteral(str, RegExp).
2009-03-23 12:36:05 +00:00
Doug Kearns 8c2adfefb1 Rename an oddly named variable in util.readFromClipboard. 2009-03-07 02:40:20 +11:00
Kris Maglione c9c708f636 Fix some bugs, generally. 2009-02-09 16:18:24 -05:00
Kris Maglione eb88d7ea0b Sorry, stashed changes including:
Change util.range to accept an increment as the third argument.
    Sanitize Makefile.doc
2009-01-21 03:41:43 -05:00
Ted Pavlic 45f6153de4 More command-line edits (now elsewhere in the source). 2009-01-17 12:55:56 -05:00
Kris Maglione 00470a05b0 Generally insignificant aesthetic changes. 2009-01-14 00:07:17 -05:00