update components
This commit is contained in:
parent
50a27ba0b4
commit
ed63dd2039
7 changed files with 18 additions and 73 deletions
|
@ -1,12 +1,12 @@
|
|||
define(['browser', 'css!./style'], function (browser) {
|
||||
|
||||
function enableAnimation() {
|
||||
function enableAnimation(elem) {
|
||||
|
||||
if (browser.mobile) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return elem.animate;
|
||||
}
|
||||
|
||||
function backdrop() {
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
parent.appendChild(backdropImage);
|
||||
|
||||
if (!enableAnimation()) {
|
||||
if (!enableAnimation(backdropImage)) {
|
||||
if (existingBackdropImage && existingBackdropImage.parentNode) {
|
||||
existingBackdropImage.parentNode.removeChild(existingBackdropImage);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue