1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-21 17:31:25 +02:00

Fix some documentation typos.

This commit is contained in:
Doug Kearns
2009-11-14 04:18:59 +11:00
parent 592305420d
commit 52562f6390
2 changed files with 38 additions and 38 deletions
+7 -7
View File
@@ -194,9 +194,9 @@ function call(fn) {
* @param {integer} length The number of arguments expected.
* @default fn.length
* @optional
* @param {object} self The 'this' value for the returned
* function. When omitted, the value of 'this' from the
* first call to the function is preserved.
* @param {object} self The 'this' value for the returned function. When
* omitted, the value of 'this' from the first call to the function is
* preserved.
* @optional
*/
function curry(fn, length, self, acc) {
@@ -313,8 +313,8 @@ function extend(subclass, superclass, overrides) {
* @optional
* @default Class
* @param {Object} prototype The prototype for instances of this
* object. The object itself is copied and not used as a
* prototype directly.
* object. The object itself is copied and not used as a prototype
* directly.
* @param {Object} classProperties The class properties for the new
* module constructor. More than one may be provided.
* @optional
@@ -350,7 +350,7 @@ function Class() {
String.substr(constructor, 20) + ")");
Constructor.name = name || superclass.name;
if (!('init' in superclass.prototype)) {
if (!("init" in superclass.prototype)) {
var superc = superclass;
superclass = function Shim() {}
extend(superclass, superc, {
@@ -433,7 +433,7 @@ const Struct = Class("Struct", {
/**
* Sets a lazily constructed default value for a member of
* the struct. The value is constructed once, the first time
* it is accesed and memoized thereafter.
* it is accessed and memoized thereafter.
*
* @param {string} key The name of the member for which to
* provide the default value.
+11 -11
View File
@@ -25,10 +25,10 @@ const ModuleBase = Class("ModuleBase", {
* entirely elided, or they must have the exact type specified.
* Loading semantics are as follows:
*
* - A module is garunteed not to be initialized before any of its
* - A module is guaranteed not to be initialized before any of its
* prerequisites as listed in its {@see ModuleBase#requires} member.
* - A module is considered initialized once its been instantiated,
* it's {@see Class#init} method has been called, and its
* - A module is considered initialized once it's been instantiated,
* its {@see Class#init} method has been called, and its
* instance has been installed into the top-level {@see modules}
* object.
* - Once the module has been initialized, its module-dependent
@@ -38,16 +38,16 @@ const ModuleBase = Class("ModuleBase", {
* @param {ModuleBase} base The base class for this module.
* @optional
* @param {Object} prototype The prototype for instances of this
* object. The object itself is copied and not used as a
* prototype directly.
* object. The object itself is copied and not used as a prototype
* directly.
* @param {Object} classProperties The class properties for the new
* module constructor.
* @optional
* @param {Object} moduleInit The module initialization functions
* for the new module. Each function is called as soon as the
* named module has been initialized, but after the module
* itself. The constructors are garunteed to be called in the
* same order that the dependent modules were initialized.
* for the new module. Each function is called as soon as the named module
* has been initialized, but after the module itself. The constructors are
* guaranteed to be called in the same order that the dependent modules
* were initialized.
* @optional
*
* @returns {function} The constructor for the resulting module.
@@ -115,7 +115,7 @@ window.addEventListener("load", function () {
}
}
Module.list.forEach(load);
deferredInit['load'].forEach(call)
deferredInit["load"].forEach(call)
for (let module in values(Module.list))
delete module.INIT;
@@ -125,7 +125,7 @@ window.addEventListener("load", function () {
window.addEventListener("unload", function () {
for (let [, mod] in iter(modules))
if (mod instanceof ModuleBase && 'destroy' in mod)
if (mod instanceof ModuleBase && "destroy" in mod)
mod.destroy();
}, false);