update components
This commit is contained in:
parent
50a27ba0b4
commit
ed63dd2039
7 changed files with 18 additions and 73 deletions
|
@ -16,12 +16,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.1.45",
|
||||
"_release": "1.1.45",
|
||||
"version": "1.1.46",
|
||||
"_release": "1.1.46",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.1.45",
|
||||
"commit": "4096a916053ab04935ebbe0dec9bbc491d66ae9d"
|
||||
"tag": "1.1.46",
|
||||
"commit": "1c0644c2d74740356a298c55a174c34ae465436d"
|
||||
},
|
||||
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
||||
"_target": "~1.1.5",
|
||||
|
|
|
@ -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