[Prototype-core] Re: Indiscriminate use of breaking into words function $w()

2007-09-04 Thread Les
> 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 [ ]. --~--~-~--~~~-

[Prototype-core] There's nothing wrong with our code

2007-09-07 Thread Les
"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

[Prototype-core] Superclass constructor

2007-09-20 Thread Les
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

[Prototype-core] Re: Superclass constructor

2007-09-20 Thread Les
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

[Prototype-core] Re: Superclass constructor

2007-09-21 Thread Les
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/

[Prototype-core] Re: Superclass constructor

2007-09-22 Thread Les
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

[Prototype-core] Re: Superclass constructor

2007-09-24 Thread Les
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()

[Prototype-core] Re: Superclass constructor

2007-09-20 Thread Les Szklanny
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

[Prototype-core] Re: Superclass constructor

2007-09-21 Thread Les Szklanny
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

[Prototype-core] Re: Superclass constructor

2007-09-24 Thread Les Szklanny
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

[Prototype-core] Re: useCapture support is dropped?

2007-12-30 Thread Les Szklanny
* 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