if (!force && e.style[p])
r = e.style[p];
- else if (e.currentStyle)
+ else if (e.currentStyle) {
+ p = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
r = e.currentStyle[p];
- else if (document.defaultView && document.defaultView.getComputedStyle) {
+ } else if (document.defaultView && document.defaultView.getComputedStyle) {
p = p.replace(/([A-Z])/g,"-$1").toLowerCase();
var s = document.defaultView.getComputedStyle(e,"");
r = s ? s.getPropertyValue(p) : null;
},
handle: function(event) {
+ if ( typeof jQuery == "undefined" ) return;
+
event = event || jQuery.event.fix( window.event );
// If no correct event was found, fail