Fixing some minor formatting problems.
This commit is contained in:
parent
b05d631b30
commit
34adda3c88
|
@ -286,6 +286,7 @@ jQuery.event = {
|
||||||
type = type.slice(0, -1);
|
type = type.slice(0, -1);
|
||||||
exclusive = true;
|
exclusive = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( type.indexOf(".") >= 0 ) {
|
if ( type.indexOf(".") >= 0 ) {
|
||||||
// Namespaced trigger; create a regexp to match event type in handle()
|
// Namespaced trigger; create a regexp to match event type in handle()
|
||||||
namespaces = type.split(".");
|
namespaces = type.split(".");
|
||||||
|
@ -306,6 +307,7 @@ jQuery.event = {
|
||||||
jQuery.extend( jQuery.Event(type), event ) :
|
jQuery.extend( jQuery.Event(type), event ) :
|
||||||
// Just the event type (string)
|
// Just the event type (string)
|
||||||
jQuery.Event(type);
|
jQuery.Event(type);
|
||||||
|
|
||||||
event.namespace = namespaces.join(".");
|
event.namespace = namespaces.join(".");
|
||||||
event.namespace_re = new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)");
|
event.namespace_re = new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)");
|
||||||
event.exclusive = exclusive;
|
event.exclusive = exclusive;
|
||||||
|
|
Loading…
Reference in a new issue