Browse Source

prefer Polymer first over $ in clone

pull/1125/head
camargo 8 years ago
parent
commit
2f45d5f15c
  1. 15
      Sortable.js
  2. 2
      Sortable.min.js

15
Sortable.js

@ -1421,12 +1421,15 @@
}
function _clone(el) {
return $
? $(el).clone(true)[0]
: (Polymer && Polymer.dom
? Polymer.dom(el).cloneNode(true)
: el.cloneNode(true)
);
if (Polymer && Polymer.dom) {
return Polymer.dom(el).cloneNode(true);
}
else if ($) {
return $(el).clone(true)[0];
}
else {
return el.cloneNode(true);
}
}
function _saveInputCheckedState(root) {

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save