diff --git a/bower.json b/bower.json index 2917b9a..8665722 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "tablesort", "description": "A sorting component for HTML tables", - "version": "4.0.0", + "version": "4.0.1", "license": "MIT", "main": "tablesort.min.js", "authors": [ diff --git a/package.json b/package.json index 24cf627..b669063 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tablesort", "description": "A sorting component for HTML tables", - "version": "4.0.0", + "version": "4.0.1", "author": "tristen", "ender": "./ender.js", "main": "./src/tablesort.js", diff --git a/tablesort.min.js b/tablesort.min.js index 1120186..997822b 100644 --- a/tablesort.min.js +++ b/tablesort.min.js @@ -1,5 +1,5 @@ /*! - * tablesort v4.0.0 (2016-03-14) + * tablesort v4.0.1 (2016-03-30) * http://tristen.ca/tablesort/demo/ * Copyright (c) 2016 ; Licensed MIT */!function(){function a(b,c){if(!(this instanceof a))return new a(b,c);if(!b||"TABLE"!==b.tagName)throw new Error("Element must be a table");this.init(b,c||{})}var b=[],c=function(a){var b;return window.CustomEvent&&"function"==typeof window.CustomEvent?b=new CustomEvent(a):(b=document.createEvent("CustomEvent"),b.initCustomEvent(a,!1,!1,void 0)),b},d=function(a){return a.getAttribute("data-sort")||a.textContent||a.innerText||""},e=function(a,b){return a=a.toLowerCase(),b=b.toLowerCase(),a===b?0:b>a?1:-1},f=function(a,b){return function(c,d){var e=a(c.td,d.td);return 0===e?b?d.index-c.index:c.index-d.index:e}};a.extend=function(a,c,d){if("function"!=typeof c||"function"!=typeof d)throw new Error("Pattern and sort must be a function");b.push({name:a,pattern:c,sort:d})},a.prototype={init:function(a,b){var c,d,e,f,g=this;if(g.table=a,g.thead=!1,g.options=b,a.rows&&a.rows.length>0&&(a.tHead&&a.tHead.rows.length>0?(c=a.tHead.rows[a.tHead.rows.length-1],g.thead=!0):c=a.rows[0]),c){var h=function(){g.current&&g.current!==this&&(g.current.classList.remove("sort-up"),g.current.classList.remove("sort-down")),g.current=this,g.sortTable(this)};for(e=0;e0&&m.push(l),n++;if(!m)return}for(n=0;nq;q++)s[q]?(l=s[q],u++):l=r[q-u].tr,i.table.tBodies[n].appendChild(l)}}i.table.dispatchEvent(c("afterSort"))}},refresh:function(){void 0!==this.current&&this.sortTable(this.current,!0)}},"undefined"!=typeof module&&module.exports?module.exports=a:window.Tablesort=a}(); \ No newline at end of file diff --git a/test/index.html b/test/index.html index 0d5abcc..5356433 100644 --- a/test/index.html +++ b/test/index.html @@ -4,6 +4,7 @@ + @@ -135,7 +136,7 @@
- +
Multi
2