Commit 5f88f7f07b692e903cf7ee8beef1817b059720a6

Authored by Nitai Silva
1 parent 29ae04e2
Exists in master

Refatorando.

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
assets/barra-brasil.coffee
@@ -24,14 +24,13 @@ @@ -24,14 +24,13 @@
24 tipo.nodeValue = "text/css" 24 tipo.nodeValue = "text/css"
25 media = document.createAttribute("media") 25 media = document.createAttribute("media")
26 media.nodeValue = "all" 26 media.nodeValue = "all"
27 - conteudo = document.createTextNode(css)  
28 style.setAttributeNode tipo 27 style.setAttributeNode tipo
29 style.setAttributeNode media 28 style.setAttributeNode media
30 29
31 if style.styleSheet #Hack para IE8 30 if style.styleSheet #Hack para IE8
32 style.styleSheet.cssText = css 31 style.styleSheet.cssText = css
33 else 32 else
34 - style.appendChild conteudo 33 + style.appendChild document.createTextNode(css)
35 34
36 head.appendChild style 35 head.appendChild style
37 36