MCPcopy Index your code
hub / github.com/textAngular/textAngular / _unwrapElement

Function _unwrapElement

src/taBind.js:630–634  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

628 }
629 }
630 var _unwrapElement = function(node){
631 node = angular.element(node);
632 for(var _n = node[0].childNodes.length - 1; _n >= 0; _n--) node.after(node[0].childNodes[_n]);
633 node.remove();
634 };
635
636 angular.forEach(targetDom.find('span'), function(node){
637 node.removeAttribute('lang');

Callers 1

processpasteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected