Closure styling fixes for 1.1 work

This commit is contained in:
Sérgio Gomes 2015-09-07 11:12:59 +01:00
parent aac875fd77
commit 1bc97ebe88
2 changed files with 8 additions and 1 deletions

View File

@ -499,7 +499,11 @@ gulp.task('zip:mdl', function() {
.pipe(gulp.dest('dist'));
});
// Returns the list of children directories inside the given directory.
/**
* Returns the list of children directories inside the given directory.
* @param {string} dir the parent directory
* @return {Array<string>} [description]
*/
function getSubDirectories(dir) {
return fs.readdirSync(dir)
.filter(function(file) {

View File

@ -423,6 +423,9 @@
*/
function MaterialLayoutTab(tab, tabs, panels, layout) {
/**
* Auxiliary method to programmatically select a tab in the UI.
*/
function selectTab() {
var href = tab.href.split('#')[1];
var panel = layout.content_.querySelector('#' + href);