1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-10 14:45:46 +01:00

Typo and consistency fixes.

This commit is contained in:
Štěpán Němec
2011-01-20 00:41:16 +01:00
parent d72bf559ee
commit 172c0058cf
9 changed files with 32 additions and 35 deletions

View File

@@ -399,15 +399,16 @@ function isSubclass(targ, src) {
}
/**
* Returns true if object is an instance or interfaces. If interfaces is an array,
* returns true if object is an instance of any element of interfaces. If interfaces is
* the object form of a primitive type, returns true if object is a
* non-boxed version of the type, i.e., if (typeof object == "string"),
* isinstance(object, String) is true. Finally, if interfaces is a string,
* returns true if ({}.toString.call(object) == "[object <interfaces>]").
* Returns true if *object* is an instance of *interfaces*. If *interfaces* is
* an array, returns true if *object* is an instance of any element of
* *interfaces*. If *interfaces* is the object form of a primitive type,
* returns true if *object* is a non-boxed version of the type, i.e., if
* (typeof object == "string"), isinstance(object, String) is true. Finally, if
* *interfaces* is a string, returns true if ({}.toString.call(object) ==
* "[object <interfaces>]").
*
* @param {object} object The object to check.
* @param {constructor|[constructor|string]} interfaces The types to check object against.
* @param {constructor|[constructor|string]} interfaces The types to check *object* against.
* @returns {boolean}
*/
var isinstance_types = {