From 93b0c9ede735a19cf1b391ab7b598b015b3533c4 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Sun, 2 Sep 2012 09:48:45 +0100 Subject: [PATCH] Examples: update - bind the 'xhr' event to the table without calling DataTables - no need for that call to be made. --- examples/examples_support/syntax/js/shCore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/examples_support/syntax/js/shCore.js b/examples/examples_support/syntax/js/shCore.js index 8fae8fdb..c8f27341 100644 --- a/examples/examples_support/syntax/js/shCore.js +++ b/examples/examples_support/syntax/js/shCore.js @@ -2698,7 +2698,7 @@ var dtLinks = [ /* Show and syntax highlight XHR returns from the server */ $(document).ready( function () { if ( $.fn.dataTableSettings.length >= 1 ) { - $('#example').dataTable().bind('xhr', function ( e, oSettings, json ) { + $('#example').bind('xhr', function ( e, oSettings, json ) { var n = document.getElementById('latest_xhr'); if ( n ) { n.innerHTML = JSON.stringify( json, null, 2 );