From dfa2966d9955dd669ad7fba81fed357c8294aaa8 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sat, 5 Mar 2011 22:55:15 -0500 Subject: [PATCH] Removed class naming from TODO and updated README to include mention --- README.md | 9 +++++++++ TODO | 2 -- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 72ae34e..d51aa15 100644 --- a/README.md +++ b/README.md @@ -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 Classes may inherit from one-another. If the supertype was created using `Class.extend()`, a convenience `extend()` method has been added to it. Classes diff --git a/TODO b/TODO index d56accc..c703ff4 100644 --- a/TODO +++ b/TODO @@ -12,8 +12,6 @@ Misc functions, will not impact function logic. - Should be able to run source file without preprocessing, so C-style macros 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 Property Keywords