From 5c08c74d24f47fa60f36681eb042fc337eab194c Mon Sep 17 00:00:00 2001 From: Allan Jardine <allan.jardine@sprymedia.co.uk> Date: Thu, 19 Jun 2014 10:18:47 +0100 Subject: [PATCH] Fix: Event methods automatic addition of `.dt` namespace was greedy * Need to ensure that the `.dt` namespace is still added to external namespaces such as `.dtr`. --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 87c99013..4b39a02d 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -ad3a2ea74090ef0721f2e74f2e14ea883739c05c +8f6df2b9f072694f09dbf1951d7cf6d206218c48 diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index a052a8a1..6cfd63cd 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -8628,7 +8628,7 @@ var args = Array.prototype.slice.call(arguments); // Add the `dt` namespace automatically if it isn't already present - if ( args[0].indexOf( '.dt' ) === -1 ) { + if ( ! args[0].match(/\.dt\b/) ) { args[0] += '.dt'; }