Eric Shepherd wrote:

Currently, the JavaScript reference content for the global classes (String, Array, etc), are divided up such that the class methods and properties and the prototype methods and properties are documented separately

Function doesn't appear to be divided, while Object appears to have both a prototype page but also the prototype methods on the same page. I don't like this inconsistency either, however a problem with String and Array is that they support generics which have the same name as the instance methods. Perhaps if the methods of the global object were prefixed e.g.

String.fromCharCode(code, ...)
Returns a string created by using the specified sequence of Unicode values.

String.charAt(string, pos)
charAt(pos)
   Returns the character at the specified index.

etc.

with links between them.

I looked and they're http: links too! Oops.

--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to