From 5511ef78b54f277d49df63a51add829c910b8bc5 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 25 Dec 2013 02:04:30 -0500 Subject: [PATCH] Manual corrections for class examples; overrides must be virtual Artifact from pre-virtual days. --- doc/classes.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/classes.texi b/doc/classes.texi index 16b3be7..90fb15a 100644 --- a/doc/classes.texi +++ b/doc/classes.texi @@ -695,7 +695,7 @@ inherited from the parent. /** * Bark when we're poked */ - 'public poke': function() + 'virtual public poke': function() { this.bark(); } @@ -925,14 +925,14 @@ Let's take a look at an example. @verbatim var Foo = Class( { - 'protected canEscalate': 'baz', + 'virtual protected canEscalate': 'baz', - 'protected escalateMe': function( arg ) + 'virtual protected escalateMe': function( arg ) { console.log( 'In escalateMe' ); }, - 'public cannotMakeProtected': function() + 'virtual public cannotMakeProtected': function() { } } ),