git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b147039
)
Added a className tweak. All core and selector tests now pass.
author
John Resig
<jeresig@gmail.com>
Mon, 9 Jul 2007 00:02:32 +0000
(
00:02
+0000)
committer
John Resig
<jeresig@gmail.com>
Mon, 9 Jul 2007 00:02:32 +0000
(
00:02
+0000)
build/runtest/env.js
patch
|
blob
|
history
diff --git
a/build/runtest/env.js
b/build/runtest/env.js
index
f3afb19
..
bf53efa
100644
(file)
--- a/
build/runtest/env.js
+++ b/
build/runtest/env.js
@@
-357,7
+357,10
@@
var window = this;
set selected(val) { return this.setAttribute("selected",val); },
get className() { return this.getAttribute("class") || ""; },
- set className(val) { return this.setAttribute("class",val); },
+ set className(val) {
+ return this.setAttribute("class",
+ val.replace(/(^\s*|\s*$)/g,""));
+ },
get type() { return this.getAttribute("type") || ""; },
set type(val) { return this.setAttribute("type",val); },