X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=jquery%2Fjquery.js;h=4f26b4c15b6bac504f7cee93db497e9e578e4802;hb=9e37da96d12c0f35c766a4724c5d565d0a50ab42;hp=02c22fbe03a10ba1482002c2c989c2d5101b9b3d;hpb=e8627fe1555602dc4713c4e848a41642b2654512;p=jquery.git diff --git a/jquery/jquery.js b/jquery/jquery.js index 02c22fb..4f26b4c 100644 --- a/jquery/jquery.js +++ b/jquery/jquery.js @@ -62,7 +62,7 @@ function jQuery(a,c) { // Watch for when an array is passed in this.get( a.constructor == Array || a.length && a[0] != undefined && a[0].nodeType ? - // Assume that it's an array of DOM Elements + // Assume that it is an array of DOM Elements jQuery.merge( a, [] ) : // Find the matching elements and save them for later @@ -1076,8 +1076,8 @@ new function() { * @type jQuery * @param String type An event type */ - trigger: function( type ) { - jQuery.event.trigger( this, type ); + trigger: function( type, data ) { + jQuery.event.trigger( type, data, this ); } }; @@ -1176,15 +1176,16 @@ jQuery.extend({ }); return p == "height" ? oHeight : oWidth; - } + } else if ( p == "opacity" && jQuery.browser.msie ) + return parseFloat( jQuery.curCSS(e,"filter").replace(/[^0-9.]/,"") ) || 1; return jQuery.curCSS( e, p ); }, - curCSS: function(e,p) { + curCSS: function(e,p,force) { var r; - if (e.style[p]) + if (!force && e.style[p]) r = e.style[p]; else if (e.currentStyle) r = e.currentStyle[p];