disablePropagation = _build_disablePropagation();
getWindowWidth = _build_getWindowWidth();
getWindowHeight = _build_getWindowHeight();
+ getWindowScrollX = _build_getWindowScrollX();
+ getWindowScrollY = _build_getWindowScrollY();
clearSelection = _build_clearSelection();
}
}
}
+function _build_getWindowScrollX() {
+ if (window.scrollX !== undefined) {
+ return function(){
+ return window.scrollX;
+ };
+ }
+ else {
+ return function(){
+ return document.documentElement.scrollLeft;
+ };
+ }
+}
+
+function _build_getWindowScrollY() {
+ if (window.scrollY !== undefined) {
+ return function(){
+ return window.scrollY;
+ };
+ }
+ else {
+ return function(){
+ return document.documentElement.scrollTop;
+ };
+ }
+}
+
function _build_clearSelection() {
if (document.selection) {
return function() {
}
};
-if (browser.isIE) {
+if (browser.isIE10max) {
_setAttribute = function(e, name, value) {
// workarround IE lack of dom implementation.
switch(name.toLowerCase()) {
}
};
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;}
};