1
0
Fork 0

Minor doc corrections for static implementation

closure/master
Mike Gerwitz 2011-05-09 18:33:44 -04:00
parent c980a59273
commit 56ba57511b
1 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ does this mean? Consider two classes: @var{Foo} and @var{SubFoo}, the latter of
which inherits from the former. @var{Foo} defines a static property @var{count} which inherits from the former. @var{Foo} defines a static property @var{count}
to be incremented each time the class is instantiated. The subtype @var{SubFoo}, to be incremented each time the class is instantiated. The subtype @var{SubFoo},
when instantiated (assuming the constructor is not overridden), would increment when instantiated (assuming the constructor is not overridden), would increment
that very same count. Therefore, we can represent this by static that that very same count. Therefore, we can represent this by stating that
@samp{Foo.count === SubFoo.count}. In the example below, we demonstrate this @samp{Foo.count === SubFoo.count}. In the example below, we demonstrate this
concept in pseudocode: concept in pseudocode:
@ -333,7 +333,7 @@ implementation does provide a number key benefits:
@itemize @itemize
@item @item
It provides an implementation that is @emph{consistent with other It provides an implementation that is @emph{consistent with other
Object-Oriented languages}. This is the most important point! Object-Oriented languages}. This is the most important point.
@item @item
The accessor method parameter style is common in other frameworks like jQuery. The accessor method parameter style is common in other frameworks like jQuery.