[Prototype-core] Event.relatedElement

2009-12-05 Thread Simon Charette
Hi all, I've been working on fixing issues #708https://prototype.lighthouseapp.com/projects/8886/tickets/708-mouseentermouseleave-events-have-no-relatedtarget-in-ieand

[Prototype-core] Re: Memory Leak in IE

2009-10-02 Thread Simon Charette
Element#destroy would definitely be useful. +1 I really think this is a better idea then making a public interface to reach destroyCache since it resolves into one function call and the learning curve (making difference between remove and destroy) is smaller since you don't have to teach

[Prototype-core] Re: Suggestion: String#isEmpty instead String#empty

2009-10-02 Thread Simon Charette
+1 for renaming both. 2009/10/2 Samuel Lebeau samuel.leb...@gmail.com I totally agree. `Array#isEmpty` would be useful too. Maybe we should rename those methods and deprecate the original names in 1.7. Best, Samuel. 2009/10/2 Allen Madsen bla...@gmail.com I'd prefer isEmpty as well.

[Prototype-core] Re: mouseenter and mouseleave events don't fire when an element is resized from under it.

2009-08-26 Thread Simon Charette
Can you provide a test case, it would make it easier to test on our side. It looks rather like a browser issue due to the way mouse events are handled than a Prototype problem to me. 2009/8/26 Ngan nganp...@gmail.com I'm only having problems with mouseleave (mouseenter doesn't concern me as

[Prototype-core] Re: mouseenter and mouseleave events don't fire when an element is resized from under it.

2009-08-26 Thread Simon Charette
will not fire a mouseleave. However, any other part of the mouse box will fire properly./li /ul /td /tr /table /body /html On Aug 26, 3:01 pm, Simon Charette charett...@gmail.com wrote: Can you provide a test case, it would make it easier to test on our side. It looks

[Prototype-core] Re: Porting JQuery's .live extension to prototype.

2009-05-28 Thread Simon Charette
I can help providing a cross platform test environement if you provide test cases. 2009/5/28 Radoslav Stankov rstan...@gmail.com p.p. In several day I will make Event.delegate to be able to watch for focus / blur / submit events ( and probably will try to make a good patch for Prototype.js

[Prototype-core] Re: Element.setOpacity have a strange behaviour on prototype 1.6.1RC2

2009-05-19 Thread Simon Charette
@david You can boot on an .iso to install the oses. Anyway, if you need some help testing your fork on windows and linuxes browsers let me know. 2009/5/19 Tobie Langel tobie.lan...@gmail.com Hi David, You'll need to open a ticket in LH and add your patch to it. Please mark it as an

[Prototype-core] Re: Element.setOpacity have a strange behaviour on prototype 1.6.1RC2

2009-05-13 Thread Simon Charette
Virtual Box is fine. You should have no problems testing many Windows and linuxes distros. I've not tried with Mac and you might have to get another virtualisation tool and get a Special Version of Mac OS since Mr. Jobs doesn't allow Mac software running on non-Mac hardware. Anyway, thats the

[Prototype-core] Re: Changing the key of a hashvalue

2009-04-23 Thread Simon Charette
I have trouble figuring out why you would need such a fonctionnality since hash indexing is based on key value mapping. It looks like a value reassign to me. However, if you have the oldKey you can get away with that one line reassign: hash.update({newKey : hash.get(oldKey)}).unset(oldKey);

[Prototype-core] Re: Form.serialize additional functionality ...

2009-04-16 Thread Simon Charette
var serialized = $('certain-container').select('input,select,textarea').collect(Form.Element.serialize).join(''); What do you think of this approach? 2009/4/16 Andrew Dupont goo...@andrewdupont.net On Apr 16, 10:44 am, mr_justin gro...@jperkins.otherinbox.com wrote: Has the topic ever

[Prototype-core] Re: Protopacked version bigger than original?

2009-03-20 Thread Simon Charette
You forgot scriptaculous effect.js On Fri, Mar 20, 2009 at 4:32 PM, wes w...@70kilo.tv wrote: Am I missing something here? protoaculous1.6.packed.js is 146Kb prototype.js (1.6.0.2) is 123Kb and scriptaculous is 3Kb totalling 126Kb. Isn't the packed version supposed to be smaller?

[Prototype-core] Re: Growing the community?

2009-01-15 Thread Simon Charette
Don't get me wrong but PUI is more likely an undead atm. http://github.com/xilinus/prototypeui/network I've been trying to get in contact with xilinus since last august and I finally decided to try to push things up with starpeak: added a Datagrid, fixed some issues made a spec for a decent

[Prototype-core] Re: Prototype in French

2009-01-06 Thread Simon Charette
-- Afin de contribuer au respect de l'environnement, merci de n'imprimer cet e-mail que si nécessaire On Tue, Jan 6, 2009 at 01:01, Simon Charette charett...@gmail.com wrote: Well I might be interested to help you translate the doc to french also. 2009/1/5 Christophe Porteneuve t

[Prototype-core] Re: Prototype in French

2009-01-05 Thread Simon Charette
Well I might be interested to help you translate the doc to french also. 2009/1/5 Christophe Porteneuve t...@tddsworld.com Sébastien Gruhier a écrit : TTD's book is a great book in French http://www.eyrolles.com/Informatique/Livre/bien-developper-pour-le-web-2-0-9782212123913 :) TDD,

[Prototype-core] Re: update two container by one ajax call

2008-11-21 Thread Simon Charette
Hi, You'll want to post to the user's group: http://groups.google.com/group/prototype-scriptaculous This groups is for core development discussion, not end user questions. Simon 2008/11/21 tushersuvro [EMAIL PROTECTED] Hey. Everyone! how r u? um having trouble in updating two container

[Prototype-core] Re: new swap method for elements

2008-09-23 Thread Simon Charette
Using native IE method (swapNode) might help for weird issues in table. http://msdn.microsoft.com/en-us/library/ms536774(VS.85).aspx if (element.swapNode) return element.swapNode(secondElement); 2008/9/23 EMoreth [EMAIL PROTECTED] Shouldnt it use the parent node of both elements ?? Cause

[Prototype-core] Re: Foreach Loops

2008-09-17 Thread Simon Charette
specifically, but to those who quickly suggest such things (and I see too often poor suggestions being given in many forums). That being said, I'm sorry if I offended you, or anyone in that matter. yanick On Sep 16, 12:08 pm, Simon Charette [EMAIL PROTECTED] wrote: Sorry Yannick

[Prototype-core] Re: Foreach Loops

2008-09-16 Thread Simon Charette
Sorry Yannick, but even if I agree with you that findAll().each() is the 'Prototype' way which i would prefer to the grep method i suggested. It still creates two iterations while the grep solutions doesn't. Thats the main reason why i suggested this formula. 2008/9/16 Yanick [EMAIL PROTECTED]

[Prototype-core] Re: Foreach Loops

2008-09-11 Thread Simon Charette
I think you can achieve this with a grep and a match 'factory' in a cleaner way. That would be, based on your example: Type = function(className) { return {match:function(o){return o.className == className}}; } yourArray.grep(Type('YourProtoClass'), function(obj) { obj.doStuff() }); Correct