From 5732f4c1faaff8538a27a6eacdde1d350d9f7275 Mon Sep 17 00:00:00 2001 From: Morten Brix Pedersen Date: Mon, 7 Nov 2011 09:55:01 +0100 Subject: [PATCH] Fix typo 'destory' -> 'destroy'. --- media/js/jquery.dataTables.js | 8 ++++---- .../tests_onhold/1_dom/2840-restore-table-width.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index b901d3df..efb5b3f8 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -2134,7 +2134,7 @@ var nBody = oSettings.nTBody; var i, iLen; - /* Flag to note that the table is currently being destoryed - no action should be taken */ + /* Flag to note that the table is currently being destroyed - no action should be taken */ oSettings.bDestroying = true; /* Restore hidden columns */ @@ -6918,7 +6918,7 @@ { _fnLog( _aoSettings[i], 0, "Cannot reinitialise DataTable.\n\n"+ "To retrieve the DataTables object for this table, please pass either no arguments "+ - "to the dataTable() function, or set bRetrieve to true. Alternatively, to destory "+ + "to the dataTable() function, or set bRetrieve to true. Alternatively, to destroy "+ "the old table and create a new one, set bDestroy to true (note that a lot of "+ "changes to the configuration can be made through the API which is usually much "+ "faster)." ); @@ -6927,7 +6927,7 @@ } /* If the element we are initialising has the same ID as a table which was previously - * initialised, but the table nodes don't match (from before) then we destory the old + * initialised, but the table nodes don't match (from before) then we destroy the old * instance by simply deleting it. This is under the assumption that the table has been * destroyed by other methods. Anyone using non-id selectors will need to do this manually */ @@ -7192,7 +7192,7 @@ if ( bStripeRemove ) { - /* Store the classes which we are about to remove so they can be readded on destory */ + /* Store the classes which we are about to remove so they can be readded on destroy */ oSettings.asDestroyStripes = [ '', '' ]; if ( $(anRows[0]).hasClass(oSettings.oClasses.sStripeOdd) ) { diff --git a/media/unit_testing/tests_onhold/1_dom/2840-restore-table-width.js b/media/unit_testing/tests_onhold/1_dom/2840-restore-table-width.js index 3ff8af17..435213f2 100755 --- a/media/unit_testing/tests_onhold/1_dom/2840-restore-table-width.js +++ b/media/unit_testing/tests_onhold/1_dom/2840-restore-table-width.js @@ -1,5 +1,5 @@ // DATA_TEMPLATE: dom_data -oTest.fnStart( "2840 - Restore table width on fnDestory" ); +oTest.fnStart( "2840 - Restore table width on fnDestroy" ); $(document).ready( function () { document.cookie = "";