From d47da33826ed50f418b1db2787f7d85033608db4 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Mon, 18 Nov 2013 13:43:34 +0000 Subject: [PATCH] Old API: Mark $ method as deprecated --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 9a5907c4..9f1b2875 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -9dc32c5fa50fabd9447a9e67fec49a6275c7bd5b +c03c559f0b0a8a815ab1dab80fe72d6806ce78a5 diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index a60abe93..74a1c553 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -4787,6 +4787,7 @@ * 'current' and filter is 'applied', regardless of what they might be given as. * @returns {object} jQuery object, filtered by the given selector. * @dtopt API + * @deprecated Since v1.10 * * @example * $(document).ready(function() { @@ -4803,7 +4804,7 @@ * // Filter to rows with 'Webkit' in them, add a background colour and then * // remove the filter, thus highlighting the 'Webkit' rows only. * oTable.fnFilter('Webkit'); - * oTable.$('tr', {"filter": "applied"}).css('backgroundColor', 'blue'); + * oTable.$('tr', {"search": "applied"}).css('backgroundColor', 'blue'); * oTable.fnFilter(''); * } ); */ @@ -4855,10 +4856,10 @@ * * // Filter to 'Webkit' and get all data for * oTable.fnFilter('Webkit'); - * var data = oTable._('tr', {"filter": "applied"}); + * var data = oTable._('tr', {"search": "applied"}); * * // Do something with the data - * alert( data.length+" rows matched the filter" ); + * alert( data.length+" rows matched the search" ); * } ); */ this._ = function ( sSelector, oOpts )