projects
/
Plinn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Autre approche pour la surcharge : on surcharge « catalog_object », une méthode plus...
[Plinn.git]
/
skins
/
ajax_scripts
/
javascript_events_api.js
diff --git
a/skins/ajax_scripts/javascript_events_api.js
b/skins/ajax_scripts/javascript_events_api.js
index
b4df40e
..
b93c583
100644
(file)
--- a/
skins/ajax_scripts/javascript_events_api.js
+++ b/
skins/ajax_scripts/javascript_events_api.js
@@
-220,7
+220,7
@@
function _build_getWindowScrollX() {
}
else {
return function(){
}
else {
return function(){
- return document.
body
.scrollLeft;
+ return document.
documentElement
.scrollLeft;
};
}
}
};
}
}
@@
-233,7
+233,7
@@
function _build_getWindowScrollY() {
}
else {
return function(){
}
else {
return function(){
- return document.
body
.scrollTop;
+ return document.
documentElement
.scrollTop;
};
}
}
};
}
}
@@
-292,7
+292,7
@@
getCopyOfNode = function(node) {
}
};
}
};
-if (browser.isIE) {
+if (browser.isIE
7max
) {
_setAttribute = function(e, name, value) {
// workarround IE lack of dom implementation.
switch(name.toLowerCase()) {
_setAttribute = function(e, name, value) {
// workarround IE lack of dom implementation.
switch(name.toLowerCase()) {
@@
-315,9
+315,10
@@
if (browser.isIE) {
}
};
var reCompoundPropName = /^\s*([^\-]+)\-([a-z])([a-z]+)\s*$/;
}
};
var reCompoundPropName = /^\s*([^\-]+)\-([a-z])([a-z]+)\s*$/;
- var _capitalizeCssPropName = function (s, g1, g2, g3) { // gN args match above regexp groups
- if(g2) {
- return g1 + g2.toUpperCase() + g3;}
+ var _capitalizeCssPropName = function (s) {
+ var g = reCompoundPropName.exec(s);
+ if(g) {
+ return g[1] + g[2].toUpperCase() + g[3];}
else {
return s;}
};
else {
return s;}
};