loadArticle: function(view, article) {
var viewer = this.getViewer(),
title = article.get('title'),
articleId = article.id;
tab = viewer.down('[articleId=' + articleId + ']');
if (!tab) {
tab = this.getArticleTab();
tab.down('button[action=viewintab]').destroy();
}
tab.setTitle(title);
tab.article = article;
tab.articleId = articleId;
tab.update(article.data);
viewer.add(tab);
viewer.setActiveTab(tab);
return tab;
}
댓글 없음:
댓글 쓰기