Skip to content
This repository has been archived by the owner on Jan 13, 2018. It is now read-only.

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
David Luecke committed Jun 27, 2011
1 parent 14662cd commit f58c8f8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "JS.Class",
"name": "js-class",
"description": "A class framework based on JavaScriptMVC $.Class and John Resig's Simple JavaScript inheritance.",
"version": "0.8.0",
"version": "0.9.0",
"homepage": "http://github.com/daffl/js.class",
"repository": {
"type": "git",
Expand Down
12 changes: 6 additions & 6 deletions readme.md
Expand Up @@ -6,12 +6,12 @@ and [John Resig's Simple JavaScript inheritance](http://ejohn.org/blog/simple-ja
It encourages a hybrid (as made popular by e.g. Scala) approach between functional and object oriented programming.

Features:
- Prototypal inheritance
- Static inheritance
- Introspection
- Namespaces
- Setup and initialization methods
- Callback creation
- Prototypal inheritance
- Static inheritance
- Introspection
- Namespaces
- Setup and initialization methods
- Callback creation


Creating a Class
Expand Down
8 changes: 8 additions & 0 deletions test/class.test.js
Expand Up @@ -165,4 +165,12 @@ exports.CallbackNesting = function (test) {
var callback = tester.callback(['processor', 'doSomething']);
test.equals(callback('first'), 'first processed done', "Calbacks can be chained and get their previous callbacks result");
test.done();
};

exports.ClassLoading = function (test) {
require('./export_class');
test.ok(ExportClass.Dummy, "Class should exist in global namespace");
require('./export_class');
test.equals(new ExportClass.Dummy().dummy(), 'Dummy', "Loaded class should be available");
test.done();
};

0 comments on commit f58c8f8

Please sign in to comment.