[Prototype-core] Re: From rubyonrails-spinoffs: is Element.setStyle a resource hog?

2007-02-18 Thread Marius Feraru
Maybe that is (should be) the case with Prototype too ;-) > I was doing some tests, and the cheapest way to do this was to use an if > statement, i.e if (foo === 'bar' || foo === 'bar2') {} This is a good example of micro-optimization but also a good example of

[Prototype-core] Re: From rubyonrails-spinoffs: is Element.setStyle a resource hog?

2007-02-18 Thread Marius Feraru
install ruby & rake to be able to properly deploy your SVN version of Prototype :)) [1] http://prototypejs.org/contribute ("Start by checking out the project with svn ...") - -- Marius Feraru -BEGIN PGP SIGNATURE- iD4DBQFF2LCjtZHp/AYZiNkRA

[Prototype-core] Re: From rubyonrails-spinoffs: is Element.setStyle a resource hog?

2007-02-18 Thread Marius Feraru
t;. Benchmarker it's still in its infancy state, but it works :) BTW, did you see my Benchmark port of Andrew's new$$ test? ;-) http://gfx.neohub.com/benchmark/t/domquery.html cheers - -- Marius Feraru -BEGIN PGP SIGNATURE- iD8DBQFF2LYKtZHp/AYZiNkRArFnAJ9B9ufVuDqnNFQDcKb1T

[Prototype-core] Re: From rubyonrails-spinoffs: is Element.setStyle a resource hog?

2007-02-18 Thread Marius Feraru
;maintainable code". ;-) (very dumb) examples: /ba[rz]/.test(foo) vs foo === 'bar || foo === 'baz' or for( i = k.length; --i >= 0;) vs for( i = k.length-1; i >= 0; i--) YMMV, OFC ;-) - -- Marius Feraru -BEGIN PGP SIGNATURE- iD8DBQF

[Prototype-core] Re: From rubyonrails-spinoffs: is Element.setStyle a resource hog?

2007-02-18 Thread Marius Feraru
act/deflate/etc threads on the spinoffs list or the comments in Prototype's blog...) ;-/ - -- Marius Feraru -BEGIN PGP SIGNATURE- iD8DBQFF2MActZHp/AYZiNkRAqC/AKC3uUKnOs4HxW9P6a1FhplHx1gNmwCbB1BM B7gbtglciJ60jHFQBoaMPfM= =eHc7 -END PGP SIGNATURE- --~--~-~--~~---

[Prototype-core] Re: From rubyonrails-spinoffs: is Element.setStyle a resource hog?

2007-02-18 Thread Marius Feraru
, I can see a ~40% improvement in the "already camelized" case ( "foo" vs "foo(*)" ) and ~10% penalty in all other cases. This doesn't look too bright. :( - -- Marius Feraru -BEGIN PGP SIGNATURE- iD8DBQFF2MP2tZHp/AYZi

[Prototype-core] Re: Proposed rewrite of $$/Selector

2007-02-18 Thread Marius Feraru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken Snyder wrote: > And :empty seems tricky in XPath too. .//*[not(text())] should do the trick, but don't mind me, I'm already ound asleep (:| - -- Marius Feraru -BEGIN PGP SIGNATURE- iD8

[Prototype-core] Re: Proposed rewrite of $$/Selector

2007-02-19 Thread Marius Feraru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christophe Porteneuve wrote: > Marius Feraru a écrit : >> Ken Snyder wrote: >>>> And :empty seems tricky in XPath too. >> .//*[not(text())] should do the trick, but don't mind me, I'm already >> ound a

[Prototype-core] Re: Proposed rewrite of $$/Selector

2007-02-19 Thread Marius Feraru
orks only in MSIE >= 6. [1] http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/removeattribute.asp - -- Marius Feraru -BEGIN PGP SIGNATURE- iD8DBQFF2m71tZHp/AYZiNkRAjSMAKD83RZ4bQtKsK6Td+wNsOp4cMcQ0QCgnTDt voyl/wgnBriHIFmD4iEpKdQ= =HFDV -END PGP SIGNATURE- --~--

[Prototype-core] "cosmetic" documentation updates needed

2007-03-12 Thread Marius Feraru
y: http://prototypejs.org/api/object http://prototypejs.org/api/objectrange http://prototypejs.org/api/periodicalExecuter http://prototypejs.org/api/prototype All subsequent pages - e.g. http://prototypejs.org/api/prototype/K - have their TOC. cheers - -- Marius Feraru -BEGIN PGP SI

[Prototype-core] Re: suggested documentation update for $$()

2007-03-13 Thread Marius Feraru
not see it, neither at level 3 [1], nor at level 2 [2]? TIA. [1] http://www.w3.org/TR/2005/WD-css3-selectors-20051215/#lex [2] http://www.w3.org/TR/2006/WD-CSS21-20061106/grammar.html#q2 - -- Marius Feraru -BEGIN PGP SIGNATURE- iD8DBQFF9ud9tZHp/AYZiNkRAlBNAJ4wJkvPkjA7D1gNyrwBA5tP3kNH

[Prototype-core] #7826 Ajax.Updater: evalScripts should happen before onComplete

2007-03-14 Thread Marius Feraru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Would/could anybody edit this ticket's subject to add the proper "[PATCH]" prefix? TIA :) http://dev.rubyonrails.org/ticket/7826 - -- Marius Feraru -BEGIN PGP SIGNATURE- iD8DBQFF+GzRtZHp/AYZiNkRAvxiAJ0e1R2i5yn2a63KdBZMx

[Prototype-core] Re: #7826 Ajax.Updater: evalScripts should happen before onComplete

2007-03-15 Thread Marius Feraru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christophe Porteneuve wrote: > Marius Feraru a écrit : >> Would/could anybody edit this ticket's subject to add the proper "[PATCH]" >> prefix? TIA :) >> >> http://dev.rubyonrails.org/ticket/7826 > >

[Prototype-core] Re: Hash.toQueryString changes

2007-03-15 Thread Marius Feraru
convention you may choose for this weird (YMMV) serialization system. :( Yes, *convention* IS the key point - e.g. remember the discussions about "undefined" vs "" vs "false" vs "null" ? ;-/ My apologies again, in advance, if I may offended someone with

[Prototype-core] Re: Hash.toQueryString changes

2007-03-15 Thread Marius Feraru
rfect Form.serialize(), but just to apply some PHPism into this application/x-www-form-urlencoded serialization engine. Why don't you keep on using the same convention you already use in your HTML with this toy? It should work the same. For instance: >>> $H({'foo[]':[

[Prototype-core] Re: Hash.toQueryString changes

2007-03-15 Thread Marius Feraru
ides Collin's headache -, I'll keep quiet from now on, as I'm not currently interested in Rails. Thank you all very much for supporting me and my deepest apologies for all my mistakes. Prototype was a great experience thanks to all of you. Best regards. - --

[Prototype-core] Re: getElementsBySelector has different behaviour in 1.5.0 and 1.5.1

2007-06-13 Thread Marius Feraru
eless, if you have hacked your browser in such way that there's absolutely no security... Ok, then there may be a problem with our sweet Prototype, but show us how to reproduce it. ;-) - -- Marius Feraru -BEGIN PGP SIGNATURE- iD8DBQFGcAFxtZHp/AYZiNkRAhk

[Prototype-core] Re: getElementsBySelector has different behaviour in 1.5.0 and 1.5.1

2007-06-13 Thread Marius Feraru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mislav Marohnić wrote: > On 6/13/07, Marius Feraru <[EMAIL PROTECTED]> wrote: >> [ Seeing you mentioned "myIframe" (+ the reference to a "document" >> property), I'm assuming you're rea

[Prototype-core] Re: getElementsBySelector has different behaviour in 1.5.0 and 1.5.1

2007-06-13 Thread Marius Feraru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mislav Marohnić wrote: > On 6/13/07, Marius Feraru <[EMAIL PROTECTED]> wrote: >> "IFRAME" !== "FRAME". ;-) > When it comes to scripting, there is no difference that I know of. Hmm, AFAIR there were, at least on

[Prototype-core] Re: getElementsBySelector has different behaviour in 1.5.0 and 1.5.1

2007-06-13 Thread Marius Feraru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mislav Marohnić wrote: > $('myIframe').contentDocument.body > That is W3C standard. QED: I'm obsolete. :o) Thanks (again) a million, Mislav. :) - -- Marius Feraru -BEGIN PGP SIGNATURE- iD8DBQFGcA49tZ