From 594977a045b929d403ed346c5d991833949671d8 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Fri, 7 Oct 2016 16:04:51 -0700 Subject: [PATCH] docs(api): fix Dart API reference page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dart API reference page is blank following the merge of #2566. This minor fix adjustes to the new API filter criteria. For Dart we don’t show the statuses since none of the API entries are tagged with a status. --- public/resources/js/directives/api-list.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/public/resources/js/directives/api-list.js b/public/resources/js/directives/api-list.js index 6e58260e34..02fe0dbf13 100644 --- a/public/resources/js/directives/api-list.js +++ b/public/resources/js/directives/api-list.js @@ -28,7 +28,7 @@ angularIO.directive('apiList', function () { '
' + ' ' + ' ' + - '
' + + '
' + ' '+ ' '+ '
    ' + @@ -76,7 +76,7 @@ angularIO.directive('apiList', function () { { cssClass: 'function', title: 'Function', matches: ['function'] }, { cssClass: 'enum', title: 'Enum', matches: ['enum'] }, { cssClass: 'type-alias', title: 'Type Alias', matches: ['type-alias'] }, - { cssClass: 'const', title: 'Const', matches: ['var', 'let', 'const'] } + { cssClass: 'const', title: 'Const', matches: ['const', 'var', 'let'] } ]; // STATUSES @@ -140,8 +140,10 @@ angularIO.directive('apiList', function () { // UPDATE VALUES IF DART API var isForDart = $attrs.lang === 'dart'; if (isForDart) { - $ctrl.apiTypes = $ctrl.apiTypes.filter(function (t) { - return !t.cssClass.match(/^(stable|directive|decorator|interface|enum)$/); + $ctrl.isForDart = true; + $ctrl.statuses = []; + $ctrl.types = $ctrl.types.filter(function (t) { + return t.cssClass.match(/^(class|function|const)$/); }); }