[dojo-contributors] src/html.js of revision 4507
ilia at dojotoolkit.org
Mon Jun 26 16:43:35 EDT 2006
To put things short, that's for speedup.
I changed class-handling functions to use regular expressions instead of
explode/join, because profiling showed that Tree creation was very slow
because of them.
dojo.html.getClass is still widely used, but dojo.html.getClasses is not any
more. I removed trim from dojo.html.getClass because it is not needed there.
Although getClasses should return array w/o empty elements, so trim is used
Hope that explains..
From: dojo-contributors-bounces at dojotoolkit.org
[mailto:dojo-contributors-bounces at dojotoolkit.org] On Behalf Of Bryan Forbes
Sent: Monday, June 26, 2006 9:15 PM
To: dojo dev.
Subject: [dojo-contributors] src/html.js of revision 4507
With this check-in, dojo.html.getClass has had dojo.string.trim
from the return statement and moved to dojo.html.getClasses. I don't
understand why this happened. I understand the rest of the code changes
in html.js for speed-ups, but was the trim removed for a speed-up? Does
this break existing code?
bryan at reigndropsfall.net
"It does not take a majority to prevail, but rather an irate, tireless
minority keen to set brush fires in people's minds."
- Samuel Adams, an architect of the Constitution
Key fingerprint = 3D7D B728 713A BB7B B8B1 5B61 3888 17E0 70CA 0F3D
More information about the dojo-contributors