diff options
author | Robert Katic <robert.katic@gmail.com> | 2009-11-19 20:37:48 +0800 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-11-26 00:58:39 +0800 |
commit | 0bb3998a6a7a82b4c4269f3c57a9fcbe7229b162 (patch) | |
tree | 6ea6dfb75c03fd48c020307b0144d49aad55af7f /src | |
parent | 04dbdb7525eab7e845100fd17c48889bdb91dc92 (diff) | |
download | jquery-0bb3998a6a7a82b4c4269f3c57a9fcbe7229b162.tar.gz jquery-0bb3998a6a7a82b4c4269f3c57a9fcbe7229b162.zip |
Re-adding zeros removed from slice calls in last commit.
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js index 879f049f1..7e8707c3b 100644 --- a/src/event.js +++ b/src/event.js @@ -133,7 +133,7 @@ jQuery.event = { var namespaces = type.split("."); type = namespaces.shift(); var all = !namespaces.length, - namespace = new RegExp("(^|\\.)" + namespaces.slice().sort().join("\\.(?:.*\\.)?") + "(\\.|$)"), + namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)"), special = this.special[ type ] || {}; if ( events[ type ] ) { @@ -291,7 +291,7 @@ jQuery.event = { // Cache this now, all = true means, any handler all = !namespaces.length && !event.exclusive; - var namespace = new RegExp("(^|\\.)" + namespaces.slice().sort().join("\\.(?:.*\\.)?") + "(\\.|$)"); + var namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)"); handlers = ( jQuery.data(this, "events") || {} )[ event.type ]; |