mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
sort
This commit is contained in:
parent
b2af477752
commit
546af3c236
@ -36,8 +36,8 @@
|
||||
});
|
||||
|
||||
var $ = function(s, e){ return (e || document).querySelector(s) } // make native look like jQuery.
|
||||
$.text = document.body.textContent? 'textContent' : 'innerText'; // because browsers are stupid.
|
||||
$.sort = function(when, e){ return (when > ($('.sort', e)[$.text] || 0))? e : $.sort(when, e.previousSibling) }
|
||||
$.text = document.body.textContent? 'textContent' : 'innerText'; // because browsers are stupid.
|
||||
($.model = $('ul li').cloneNode(true)).removeAttribute('class');
|
||||
|
||||
$('.who', $('form')).value = document.cookie;
|
||||
|
Loading…
x
Reference in New Issue
Block a user