Extend Page component to take advantage of performance boost in flarum/core@d1c436c

This commit is contained in:
Toby Zerner 2016-03-11 13:21:53 +10:30
parent 5ff97f53ff
commit 94cfc5e535
2 changed files with 9 additions and 9 deletions

View File

@ -885,10 +885,10 @@ System.register('flarum/tags/components/TagSettingsModal', ['flarum/components/S
}
};
});;
System.register('flarum/tags/components/TagsPage', ['flarum/Component', 'flarum/components/Button', 'flarum/tags/components/EditTagModal', 'flarum/tags/components/TagSettingsModal', 'flarum/tags/helpers/tagIcon', 'flarum/tags/utils/sortTags'], function (_export) {
System.register('flarum/tags/components/TagsPage', ['flarum/components/Page', 'flarum/components/Button', 'flarum/tags/components/EditTagModal', 'flarum/tags/components/TagSettingsModal', 'flarum/tags/helpers/tagIcon', 'flarum/tags/utils/sortTags'], function (_export) {
'use strict';
var Component, Button, EditTagModal, TagSettingsModal, tagIcon, sortTags, TagsPage;
var Page, Button, EditTagModal, TagSettingsModal, tagIcon, sortTags, TagsPage;
function tagItem(tag) {
return m(
@ -922,8 +922,8 @@ System.register('flarum/tags/components/TagsPage', ['flarum/Component', 'flarum/
}
return {
setters: [function (_flarumComponent) {
Component = _flarumComponent['default'];
setters: [function (_flarumComponentsPage) {
Page = _flarumComponentsPage['default'];
}, function (_flarumComponentsButton) {
Button = _flarumComponentsButton['default'];
}, function (_flarumTagsComponentsEditTagModal) {
@ -936,8 +936,8 @@ System.register('flarum/tags/components/TagsPage', ['flarum/Component', 'flarum/
sortTags = _flarumTagsUtilsSortTags['default'];
}],
execute: function () {
TagsPage = (function (_Component) {
babelHelpers.inherits(TagsPage, _Component);
TagsPage = (function (_Page) {
babelHelpers.inherits(TagsPage, _Page);
function TagsPage() {
babelHelpers.classCallCheck(this, TagsPage);
@ -1091,7 +1091,7 @@ System.register('flarum/tags/components/TagsPage', ['flarum/Component', 'flarum/
}
}]);
return TagsPage;
})(Component);
})(Page);
_export('default', TagsPage);
}

View File

@ -1,4 +1,4 @@
import Component from 'flarum/Component';
import Page from 'flarum/components/Page';
import Button from 'flarum/components/Button';
import EditTagModal from 'flarum/tags/components/EditTagModal';
@ -29,7 +29,7 @@ function tagItem(tag) {
);
}
export default class TagsPage extends Component {
export default class TagsPage extends Page {
view() {
return (
<div className="TagsPage">