Permalink
Browse files

unlink: fix in IE

Unlink in IE kept trying to remove backlinks from the page "on". This fixes that issue.
  • Loading branch information...
atlight committed Aug 20, 2011
1 parent 24dc34c commit 81b4c70a40d18c4c59c7a6ce795796aeb50e5ea0
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/twinkleunlink.js
View
@@ -16,12 +16,12 @@ Twinkle.unlink = function twinkleunlink() {
Twinkle.unlink.getChecked2 = function twinkleunlinkGetChecked2( nodelist ) {
if( !( nodelist instanceof NodeList ) && !( nodelist instanceof HTMLCollection ) ) {
return nodelist.checked ? [ nodelist.value ] : [];
return nodelist.checked ? [ nodelist.values ] : [];
}
var result = [];
for(var i = 0; i < nodelist.length; ++i ) {
if( nodelist[i].checked ) {
result.push( nodelist[i].value );
result.push( nodelist[i].values );
}
}
return result;

0 comments on commit 81b4c70

Please sign in to comment.