]> source.dussan.org Git - vaadin-core.git/commitdiff
Create links also for documented behaviors. 21/head
authorSauli Tähkäpää <sauli@vaadin.com>
Mon, 9 Nov 2015 11:58:36 +0000 (13:58 +0200)
committerSauli Tähkäpää <sauli@vaadin.com>
Mon, 9 Nov 2015 12:11:21 +0000 (14:11 +0200)
apidoc/index.html

index afc672938ee014c769d3f0d2a0a8b61dc3b270ea..522a6a1eec60996ad190f2da429c4f07cca072b3 100644 (file)
@@ -59,7 +59,7 @@
         for(var i=0;i < types.length; i++) {
           var type = getPropertyType(types[i]);
 
-          if(result.elementsByTagName[type]) {
+          if(result.elementsByTagName[type] || result.behaviorsByName[type]) {
             var a = createLinkElement(types[i]);
 
             types[i].textContent = '';
@@ -91,7 +91,7 @@
 
         _.forEach(document.querySelector('#properties').querySelectorAll('iron-doc-property'), function(p) {
           if(!isPrimitiveType(p.querySelector('#type').textContent)) {
-            p.querySelector('#default').setAttribute('style', 'display:none');
+            p.querySelector('.annotation').setAttribute('style', 'display:none');
           }
         });
 
 
       hyd.Analyzer.analyze('../../vaadin-grid/vaadin-grid-doc.html')
           .then(function(result) {
-            document.querySelector('iron-doc-viewer').descriptor = result.elementsByTagName[getElementTag()];
+            var descriptor = result.elementsByTagName[getElementTag()] || result.behaviorsByName[getElementTag()];
+            document.querySelector('iron-doc-viewer').descriptor = descriptor;
 
             return result;
           })