1
0
Fork 0

Removed class naming from TODO and updated README to include mention

closure/master
Mike Gerwitz 2011-03-05 22:55:15 -05:00
parent b321610cc7
commit dfa2966d99
2 changed files with 9 additions and 2 deletions

View File

@ -52,6 +52,15 @@ class. The constructor is provided as the `__construct()` method (influenced by
}, },
}); });
The above creates an anonymous class and stores it in the variable ``Foo``. You
have the option of naming class in order to provide more useful error messages
and toString() output:
var Foo = Class( 'Foo',
{
// ...
});
### Extending Classes ### Extending Classes
Classes may inherit from one-another. If the supertype was created using Classes may inherit from one-another. If the supertype was created using
`Class.extend()`, a convenience `extend()` method has been added to it. Classes `Class.extend()`, a convenience `extend()` method has been added to it. Classes

2
TODO
View File

@ -12,8 +12,6 @@ Misc
functions, will not impact function logic. functions, will not impact function logic.
- Should be able to run source file without preprocessing, so C-style macros - Should be able to run source file without preprocessing, so C-style macros
cannot be used (# is not a valid token) cannot be used (# is not a valid token)
- Class/Interface naming
- Will be especially helpful for error messages
- Class module is becoming too large; refactor - Class module is becoming too large; refactor
Property Keywords Property Keywords