aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-04-24 14:15:45 -0700
committerJohn Resig <jeresig@gmail.com>2010-04-24 14:16:27 -0700
commit1533bf7c7794d8e078e7ce5e36de6d190651540a (patch)
tree18b781b7173ddcd752a11a83b30fbff6d1b1d2f9 /src/event.js
parent4a64f9a5b8472f394c52e0b3bb7972c8ce699a13 (diff)
downloadjquery-1533bf7c7794d8e078e7ce5e36de6d190651540a.tar.gz
jquery-1533bf7c7794d8e078e7ce5e36de6d190651540a.zip
Expose jQuery.uuid (use with caution) and make sure the expando property is used in the events module.
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/event.js b/src/event.js
index 588a7979a..45f2202c5 100644
--- a/src/event.js
+++ b/src/event.js
@@ -270,7 +270,7 @@ jQuery.event = {
if ( !bubbling ) {
event = typeof event === "object" ?
// jQuery.Event object
- event[expando] ? event :
+ event[ jQuery.expando ] ? event :
// Object literal
jQuery.extend( jQuery.Event(type), event ) :
// Just the event type (string)
@@ -428,7 +428,7 @@ jQuery.event = {
props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix: function( event ) {
- if ( event[ expando ] ) {
+ if ( event[ jQuery.expando ] ) {
return event;
}
@@ -557,7 +557,7 @@ jQuery.Event = function( src ) {
this.timeStamp = jQuery.now();
// Mark it as fixed
- this[ expando ] = true;
+ this[ jQuery.expando ] = true;
};
function returnFalse() {