273 karma · joined Sep 15, 2013 (13y ago) · 129 submissions
comment 6y ago · link · parent
https://github.com/wikimedia/VisualEditor/blob/master/src/ve...
comment 6y ago · link · parent
contains = hasCompare || rnative.test( docElem.contains ) ?
function( a, b ) {
var adown = a.nodeType === 9 ? a.documentElement : a,
bup = b && b.parentNode;
return a === bup || !!( bup && bup.nodeType === 1 && (
adown.contains ?
adown.contains( bup ) :
a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
));
} :
function( a, b ) {
if ( b ) {
while ( (b = b.parentNode) ) {
if ( b === a ) {
return true;
}
}
}
return false;
};comment 6y ago · link · parent
And it indeed comes with a USB "dongle"/base-station, with a cable and about the size of a watch, so not really usable on a train etc. (I use wired headphones when working away from my desk).
comment 6y ago · link · parent
comment 6y ago · link · parent
Perhaps it should. That page actually did not exist when the redirect was created:
https://en.wikipedia.org/w/index.php?title=␀&action=history
https://en.wikipedia.org/w/index.php?title=Null_symbol&actio...
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
Now, about most of the other things that were mentioned… I'm not convinced.
comment 10y ago · link · parent
But binary trees? Last time I needed them was in a CS class. Linked lists? They only came up when I had to convince a coworker that we really don't need to implement one in JS, we only have 50 items here, and someone is going to forget to update a linked list if we use one.
comment 10y ago · link · parent
comment 10y ago · link · parent