From 6452a239f313aedd75501a5afa41a92a60f6a0b9 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 7 Nov 2011 00:03:39 -0500 Subject: [PATCH] [#5] Added 'virtual' and 'override' keywords to inheritance example in manual; will continue revisions in following commits - This needs to be corrected as it's a very important detail. However, I need to get to bed. So the remaining changes will simply need to wait. --- doc/classes.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/classes.texi b/doc/classes.texi index b5b6c3e..6eda551 100644 --- a/doc/classes.texi +++ b/doc/classes.texi @@ -524,7 +524,7 @@ ease.js? // our parent class (supertype) var Dog = Class( 'Dog', { - 'public walk': function() + 'virtual public walk': function() { console.log( 'Walking the dog' ); }, @@ -538,7 +538,7 @@ ease.js? // subclass (child), as a named class var LazyDog = Class( 'LazyDog' ).extend( Dog, { - 'public walk': function() + 'override public walk': function() { console.log( 'Lazy dog refuses to walk.' ); } @@ -547,7 +547,7 @@ ease.js? // subclass (child), as an anonymous class var TwoLeggedDog = Dog.extend( { - 'public walk': function() + 'override public walk': function() { console.log( 'Walking the dog on two feet' ); }