From 2cb6bb81bac93a483013040132b1a8837ee522b6 Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Tue, 10 Mar 2015 15:44:23 -0700 Subject: [PATCH] Dyanmically update version badge --- js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index d0e3957520..e9e9341d34 100644 --- a/js/app.js +++ b/js/app.js @@ -107,6 +107,7 @@ function injectPage(url, opt_addToHistory) { // Update app-bar links. var docAppBar = doc.querySelector('app-bar'); if (docAppBar) { + appBar.badge = docAppBar.getAttribute('badge'); appBar.innerHTML = docAppBar.innerHTML; } else { // We're not on a doc page (e.g. demo page or something else). Just redirect. @@ -290,7 +291,7 @@ document.addEventListener('polymer-ready', function(e) { }); document.addEventListener('page-injected', function(e) { - + // Kickoff element doc pages initElementDoc();