Commit d800810d authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Remove template member function from List classes.

For two classes these were simply unused. For the third class they
could be more compactly expressed inline.
parent a2b604c3
Loading
Loading
Loading
Loading
+4 −15
Original line number Diff line number Diff line
@@ -26,13 +26,13 @@ Ext.define('Docs.view.examples.List', {
                    '<tpl for="samples">',
                        '<dd ext:url="{url}"><img src="extjs/examples/shared/screens/{icon}"/>',
                            '<div><h4>{text}',
                                '<tpl if="this.isNew(values.status)">',
                                '<tpl if="status === \'new\'">',
                                    '<span class="new-sample"> (New)</span>',
                                '</tpl>',
                                '<tpl if="this.isUpdated(values.status)">',
                                '<tpl if="status === \'updated\'">',
                                    '<span class="updated-sample"> (Updated)</span>',
                                '</tpl>',
                                '<tpl if="this.isExperimental(values.status)">',
                                '<tpl if="status === \'experimental\'">',
                                    '<span class="new-sample"> (Experimental)</span>',
                                '</tpl>',
                            '</h4><p>{desc}</p></div>',
@@ -40,18 +40,7 @@ Ext.define('Docs.view.examples.List', {
                    '</tpl>',
                '<div style="clear:left"></div></dl></div>',
                '</tpl>',
            '</div>',
            {
                isExperimental: function(status) {
                    return status === 'experimental';
                },
                isNew: function(status) {
                    return status === 'new';
                },
                isUpdated: function(status) {
                    return status === 'updated';
                }
            }
            '</div>'
        );

        this.on({
+1 −6
Original line number Diff line number Diff line
@@ -30,12 +30,7 @@ Ext.define('Docs.view.guides.List', {
                    '</tpl>',
                '<div style="clear:left"></div></dl></div>',
                '</tpl>',
            '</div>',
            {
                isExperimental: function(status) {
                    return status === 'experimental';
                }
            }
            '</div>'
        );

        this.on({
+1 −6
Original line number Diff line number Diff line
@@ -31,12 +31,7 @@ Ext.define('Docs.view.videos.List', {
                    '</tpl>',
                '<div style="clear:left"></div></dl></div>',
                '</tpl>',
            '</div>',
            {
                desc: function(status) {
                    return status === 'experimental';
                }
            }
            '</div>'
        );

        this.on({