forked from 0x2620/pandora
use Ox.Element to avoid leaks
This commit is contained in:
parent
85934b96f1
commit
4615c75266
1 changed files with 6 additions and 2 deletions
|
@ -41,6 +41,9 @@ pandora.ui.info = function() {
|
||||||
pandora.$ui.posterInfo && pandora.$ui.posterInfo.remove();
|
pandora.$ui.posterInfo && pandora.$ui.posterInfo.remove();
|
||||||
pandora.$ui.videoPreview && pandora.$ui.videoPreview.remove();
|
pandora.$ui.videoPreview && pandora.$ui.videoPreview.remove();
|
||||||
that.empty();
|
that.empty();
|
||||||
|
delete pandora.$ui.listInfo;
|
||||||
|
delete pandora.$ui.posterInfo;
|
||||||
|
delete pandora.$ui.videoPreview;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getId() {
|
function getId() {
|
||||||
|
@ -164,6 +167,7 @@ pandora.ui.info = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
that.updateListInfo = function() {
|
that.updateListInfo = function() {
|
||||||
|
emptyInfo();
|
||||||
that.empty().append(
|
that.empty().append(
|
||||||
pandora.$ui.listInfo = pandora.ui.listInfo()
|
pandora.$ui.listInfo = pandora.ui.listInfo()
|
||||||
);
|
);
|
||||||
|
@ -179,7 +183,7 @@ pandora.ui.listInfo = function() {
|
||||||
folderItem = folderItems.slice(0, -1),
|
folderItem = folderItems.slice(0, -1),
|
||||||
list = pandora.user.ui.section == 'items' ? pandora.user.ui._list : ui[folderItem.toLowerCase()],
|
list = pandora.user.ui.section == 'items' ? pandora.user.ui._list : ui[folderItem.toLowerCase()],
|
||||||
canEditFeaturedLists = pandora.site.capabilities['canEditFeatured' + folderItems][pandora.user.level],
|
canEditFeaturedLists = pandora.site.capabilities['canEditFeatured' + folderItems][pandora.user.level],
|
||||||
that = $('<div>').css({padding: '16px', textAlign: 'center'}),
|
that = Ox.Element().css({padding: '16px', textAlign: 'center'}),
|
||||||
$icon = Ox.Element('<img>')
|
$icon = Ox.Element('<img>')
|
||||||
.attr({
|
.attr({
|
||||||
src: list
|
src: list
|
||||||
|
|
Loading…
Reference in a new issue