Skip to content
Browse files

fix code order and whitespace

  • Loading branch information...
1 parent 1c3325d commit 0cd3571de6ae6d81f5ba0de1fcb0ec619340b83e @madrobby committed Apr 28, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/zepto.js
View
5 src/zepto.js
@@ -99,12 +99,11 @@ var Zepto = (function() {
// This function can be overriden in plugins for example to make
// it compatible with browsers that don't support the DOM fully.
zepto.fragment = function(html, name) {
+ if (html.replace) html = html.replace(tagExpanderRE, "<$1></$2>")
if (name === undefined) name = fragmentRE.test(html) && RegExp.$1
if (!(name in containers)) name = '*'
- var container = containers[name]
-
- if(html.replace) html = html.replace(tagExpanderRE, "<$1></$2>")
+ var container = containers[name]
container.innerHTML = '' + html
return $.each(slice.call(container.childNodes), function(){
container.removeChild(this)

0 comments on commit 0cd3571

Please sign in to comment.
Something went wrong with that request. Please try again.