提交 db57cd2e 编写于 作者: L Lebedev Konstantin 提交者: GitHub

Merge pull request #1125 from camargo/dev

Prefer Polymer first over $ for DOM selection in _clone
......@@ -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) {
......@@ -1439,7 +1442,7 @@
}
}
// Fixed #973:
// Fixed #973:
_on(document, 'touchmove', function (evt) {
if (Sortable.active) {
evt.preventDefault();
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册