Bundled output for commit 88d56cd4ae [skip ci]
This commit is contained in:
parent
88d56cd4ae
commit
5eb9c9010b
2 changed files with 5 additions and 5 deletions
|
|
@ -675,11 +675,11 @@ var renderService = function($window) {
|
|||
}
|
||||
//style
|
||||
function updateStyle(element, old, style) {
|
||||
if (old === style) element.style = "", old = null
|
||||
if (style == null) element.style = ""
|
||||
else if (typeof style === "string") element.style = style
|
||||
if (old === style) element.cssText = "", old = null
|
||||
if (style == null) element.cssText = ""
|
||||
else if (typeof style === "string") element.cssText = style
|
||||
else {
|
||||
if (typeof old === "string") element.style = ""
|
||||
if (typeof old === "string") element.cssText = ""
|
||||
for (var key in style) {
|
||||
element.style[key] = style[key]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue