From 46dbf56658b505bf6bbb432a45edb081e746111b Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 27 Dec 2010 22:17:21 -0500 Subject: [PATCH] Updated README with new abstract method implementation --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b3f4f0f..eca7266 100644 --- a/README.md +++ b/README.md @@ -86,17 +86,16 @@ Abstract classes require that their subtypes implement certain methods. They cannot be instantiated. Classes are automatically considered to be abstract if they contain one or more abstract methods. - var Class = require( 'easejs' ).Class, - abstractMethod = Class.abstractMethod; + var Class = require( 'easejs' ).Class; var AbstractFoo = Class.extend( { // a function may be provided if you wish the subtypes to implement a // certain number of arguments - fooBar: abstractMethod( 'arg' ), + 'abstract fooBar': [ 'arg' ], // alternatively, you needn't supply implementation details - fooBar2: abstractMethod(), + 'abstract fooBar2': [], }); If the abstract method provides implementation details (as shown by