my framework lets you code like this:

_package('com.neuromantic.display.shapes',

        _import( 'com.neuromantic.display.shapes.Oval'),

        _class( 'Circle' )._extends( 'Oval',{
                Circle: function ( size ) {
                        this._super( size, size );
                }
                
        })
);



Ross P. Sclafani
design / technology / creative

http://ross.sclafani.net
http://www.twitter.com/rosssclafani
http://www.linkedin.com/in/rosssclafani
[347] 204.5714



let go of even your longest held beliefs,
the only truth is in observation.

On Oct 26, 2012, at 10:25 AM, Kevin Newman <capta...@unfocus.com> wrote:

> JS doesn't have classes, and emulating them is somewhat tricky using the 
> prototype chain (it can be done though).
> 
> The easiest way to emulate classes though is to use a framework like 
> underscore.js (which Backbone.js is built on).
> 
> Kevin N.
> 
> 
> On 10/26/12 9:21 AM, David Hunter wrote:
>> I'd
>> really like to learn to approach javascript from a class-based approach,
> 
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to