> The "readability" argument is subjective. Personally, I find the
> array literal syntax more readable.
I agree. Also, please notice that the $w() versus [ ] usage is not
consistent in Prototype. Please pick one way and stick with it :). I
prefer [ ].
--~--~-~--~~~-
"There is nothing wrong with out code, but with your JS compression
software."
I found this cute typo :)
http://www.prototypejs.org/contribute
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" grou
I'm using Prototype 1.6 RC0. I don't see that the superclass
constructor is called automatically. They should always be called
automatically, and always before the subclass constructor. Do I have
to invoke the superclass constructor myself?
See the code below:
var Animal = Class.create({
i
7;cat' in
> javascript. Obviously, you can still choose to roll your own as you see fit.
> Proto is a baseline... repeat after me :)
>
> For another inheritance model that supports multiple inheritance see my
> blog:http://www.someelement.com/2007/03/multiple-inheritance-with-protot
Mislav,
The debate is not quite resolved for me. How do I use $super in case
of multiple inheritance?
Let's say Cat inherits from Animal and Pet. How do I call Pet
constructor in Cat?
Les
On Sep 20, 11:39 am, "Mislav Marohnić" <[EMAIL PROTECTED]>
wrote:
> On 9/20/
The OpenLayers API 2.5 (a maping API in part based on Prototype)
supports multiple inheritance, so why not Prototype?
http://openlayers.org/download/
See the Class.js file in BaseTypes. I pasted a fragment from
Class.js:
/**
* Constructor: OpenLayers.Class
* Base class used to construct all
Ryan,
Did you notice that each OpenLayers class has a destructor (destroy)
and a property denoting the class name?
I don't see such a destructor in Prototype or Dojo, see below:
OpenLayers.Map = OpenLayers.Class({
initialize: function (div, options) {
},
destroy:function()
Oh boy... what happened to the principle of least surprise? :)
I can invoke the superclass constructor by adding this line:
Animal.prototype.initialize.apply(arguments);
But, shouldn't have to do this or use $super(name). The superclass
constructor should be called automatically (as in Dojo for
Ok, so there's a single supercalss. Do we support multiple mixins as
in Dojo? How do I invoke constructors of these mixins?
http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/object-orientation/mixins
Les
On 9/21/07, Mislav Marohnić <[EMAIL PROTECTED]> wr
tor function since
> JavaScript doesn't support it? Do you manually call the method?
>
> On Sep 24, 2007, at 11:24 AM, Les wrote:
>
> >
> > Ryan,
> >
> > Did you notice that each OpenLayers class has a destructor (destroy)
> > and a property denoti
* Remove support for observing the capturing phase of DOM events,
since we can't support it in all browsers. [sam]
http://dev.rubyonrails.org/browser/spinoffs/prototype/trunk/CHANGELOG
On Dec 30, 2007 2:39 PM, KIR <[EMAIL PROTECTED]> wrote:
>
> Hi everyone!
>
>Do I understand correctly that
11 matches
Mail list logo