From 8e40e7070d44d11332adc1426b7076c2be570b2b Mon Sep 17 00:00:00 2001 From: Elliott Sprehn Date: Tue, 5 Oct 2010 07:08:18 +0800 Subject: Fix bug in IE where clone removes whitespace nodes. --- src/Angular.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Angular.js') diff --git a/src/Angular.js b/src/Angular.js index 3e53c755..f7351bdc 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -153,6 +153,10 @@ if (msie) { }; } +function quickClone(element) { + return jqLite(element[0].cloneNode(true)); +} + function isVisible(element) { var rect = element[0].getBoundingClientRect(), width = (rect.width || (rect.right||0 - rect.left||0)), -- cgit v1.2.3