angular/angular.js — pull request #4194 by chrisrhoden (2013-09-29 20:26:41+00:00)
Title: fix(jqLite): clone wrapNode in jqlite/wrap

Change jqLite's implementation of wrap() to clone the wrapNode before
wrapping the target element in it.

Match jQuery's wrap() behavior and prevent accidentally attaching
target element to the DOM as a side effect.

Closes #3860