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:
b83a6b7
)
Attribute values should be JS strings.
author
John Resig
<jeresig@gmail.com>
Sun, 8 Jul 2007 16:35:48 +0000
(16:35 +0000)
committer
John Resig
<jeresig@gmail.com>
Sun, 8 Jul 2007 16:35:48 +0000
(16:35 +0000)
build/runtest/env.js
patch
|
blob
|
history
diff --git
a/build/runtest/env.js
b/build/runtest/env.js
index
7a1352a
..
6483324
100644
(file)
--- a/
build/runtest/env.js
+++ b/
build/runtest/env.js
@@
-206,8
+206,7
@@
var window = this;
this.style = {};
// Load CSS info
this.style = {};
// Load CSS info
- var styles = (new String(this.getAttribute("style") || ""))
- .split(/\s*;\s*/);
+ var styles = (this.getAttribute("style") || "").split(/\s*;\s*/);
for ( var i = 0; i < styles.length; i++ ) {
var style = styles[i].split(/\s*:\s*/);
for ( var i = 0; i < styles.length; i++ ) {
var style = styles[i].split(/\s*:\s*/);
@@
-348,7
+347,7
@@
var window = this;
getAttribute: function(name){
return this._dom.hasAttribute(name) ?
getAttribute: function(name){
return this._dom.hasAttribute(name) ?
- this._dom.getAttribute(name) :
+ new String( this._dom.getAttribute(name) ) :
null;
},
setAttribute: function(name,value){
null;
},
setAttribute: function(name,value){