Skip to content
Permalink
Browse files

Re-adding zeros removed from slice calls in last commit.

  • Loading branch information
rkatic authored and jeresig committed Nov 19, 2009
1 parent 04dbdb7 commit 0bb3998a6a7a82b4c4269f3c57a9fcbe7229b162
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 ];

0 comments on commit 0bb3998

Please sign in to comment.
You can’t perform that action at this time.