1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-30 23:52:11 +01:00

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`.
This commit is contained in:
Allan Jardine 2014-06-19 10:18:47 +01:00
parent 8e71c39929
commit 5c08c74d24
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
ad3a2ea74090ef0721f2e74f2e14ea883739c05c
8f6df2b9f072694f09dbf1951d7cf6d206218c48

View File

@ -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';
}