mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-23 06:55:52 +00:00
FIXED: Warning due to use of aDOMEvent.returnValue
This patch fixes a warning thrown by recent versions of Chrome about IE ways of doing. It simply uses aDOMEvent.returnValue if aDOMEvent.preventDefault() and aDOMEvent.cancelBubble if aDOMEvent.stopPropagation are not avavailable
This commit is contained in:
1 parent
1557c567d4
commit
af83065df5
1 file changed
+6
-7
@@ -1661,16 +1661,15 @@ var CPDOMEventGetClickCount = function(aComparisonEvent, aTimestamp, aLocation)
|
||||
// Global.
|
||||
_CPDOMEventStop = function(aDOMEvent, aPlatformWindow)
|
||||
{
|
||||
// IE Model
|
||||
aDOMEvent.cancelBubble = true;
|
||||
aDOMEvent.returnValue = false;
|
||||
|
||||
// W3C Model
|
||||
if (aDOMEvent.preventDefault)
|
||||
if (aDOMEvent.preventDefault) // W3C Model
|
||||
aDOMEvent.preventDefault();
|
||||
else // IE Model
|
||||
aDOMEvent.returnValue = false;
|
||||
|
||||
if (aDOMEvent.stopPropagation)
|
||||
if (aDOMEvent.stopPropagation) // W3C Model
|
||||
aDOMEvent.stopPropagation();
|
||||
else // IE Model
|
||||
aDOMEvent.cancelBubble = true;
|
||||
};
|
||||
|
||||
function CPWindowObjectList()
|
||||
|
||||
Reference in new issue
Block a user