1. Witam - wykorzystuję bibliotekę tablesorter do sortowania tablicy. Zaczyna się ona następująco :


  1. (function ($) {
  2. $.extend({
  3. tablesorter: new
  4. function () {
  5.  
  6. var parsers = [],
  7. widgets = [];
  8.  
  9. this.defaults = {
  10. cssHeader: "header",
  11. cssAsc: "headerSortUp",
  12. cssDesc: "headerSortDown",
  13. cssChildRow: "expand-child",
  14. sortInitialOrder: "asc",
  15. sortMultiSortKey: "shiftKey",
  16. sortForce: null,
  17. sortAppend: null,
  18. sortLocaleCompare: true,
  19. textExtraction: "simple",
  20. parsers: {}, widgets: [],
  21. widgetZebra: {
  22. css: ["even", "odd"]
  23. }, headers: {}, widthFixed: false,
  24. cancelSelection: true,
  25. sortList: [],
  26. headerList: [],
  27. dateFormat: "us",
  28. decimal: '/\.|\,/g',
  29. onRenderHeader: null,
  30. selectorHeaders: 'thead th',
  31. debug: false
  32. };
  33.  
  34. /* debuging utils */
  35. function returnSortList().......{


Chciałbym w innym pliku js odwołać się do zmiennej sortList. Inaczej mówiąc tablesorter to jest plik a, a ja w bliku b
chciałbym zrobić:

var tablica = sortList ;

Mógłby mi ktoś podpowiedzieć jak to zrobić ?