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
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
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
;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
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-
--~--~-~--~~---
, 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
-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
-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
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-
--~--
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
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
-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
-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
>
>
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
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[]':[
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.
- --
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
-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
-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
-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
20 matches
Mail list logo