-
-
-
diff --git a/docs/app/demo/layout/utility-attributes.html b/docs/app/demo/layout/utility-attributes.html
deleted file mode 100644
index 4038b450efa..00000000000
--- a/docs/app/demo/layout/utility-attributes.html
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
- Layout Padding
-
-
-
-
-
- I'm a <span>, but now a block element ;)
-
-
-
- I'm a <div>, but now an inline-block element :P
-
-
-
- I'm hidden by default, but shown when the small media query is active!
-
-
-
- I'm shown by default, but hidden when the large media query is active!
-
-
-
-
diff --git a/docs/app/js/demoInclude.js b/docs/app/js/demoInclude.js
index 7655e4ff7b1..4478d906933 100644
--- a/docs/app/js/demoInclude.js
+++ b/docs/app/js/demoInclude.js
@@ -13,16 +13,16 @@ function($q, $http, $compile, $templateCache, $timeout) {
function postLink(scope, element, attr) {
var demoContainer;
- // Interpret the expression given as `demo-include="something"`
+ // Interpret the expression given as `demo-include files="something"`
var files = scope.$eval(attr.files) || {};
var ngModule = scope.$eval(attr.module) || '';
$timeout(handleDemoIndexFile);
/**
- * Fetch the demo's incdex file, and if it contains its own ng-app ngModule
- * then bootstrap a new angular app with that ngModule. Otherwise, compile
- * the demo into the current demo ng-app.
+ * Fetch the index file, and if it contains its own ngModule
+ * then bootstrap a new angular app with that ngModule. Otherwise, compile
+ * the demo into the current ng-app.
*/
function handleDemoIndexFile() {
files.index.contentsPromise.then(function(contents) {
diff --git a/docs/app/js/highlight-angular.js b/docs/app/js/highlight-angular.js
index 0221f5d2b84..a62acbabdb3 100644
--- a/docs/app/js/highlight-angular.js
+++ b/docs/app/js/highlight-angular.js
@@ -46,10 +46,12 @@ DocsApp
});
// Make it so each line starts at 0 whitespace
- var firstLineWhitespace = lines[0].match(/^\s*/)[0] || '';
+ var match = lines[0].match(/^\s*/);
+ var firstLineWhitespace = match && match[0] || '';
+ var startingWhitespaceRegex = new RegExp('^' + firstLineWhitespace);
lines = lines.map(function(line) {
return line
- .replace(new RegExp('^' + firstLineWhitespace), '')
+ .replace(startingWhitespaceRegex, '')
.replace(/\s+$/, '');
});
diff --git a/docs/app/partials/layout-container.tmpl.html b/docs/app/partials/layout-container.tmpl.html
index af13cc8cb78..631ddd490cc 100644
--- a/docs/app/partials/layout-container.tmpl.html
+++ b/docs/app/partials/layout-container.tmpl.html
@@ -15,7 +15,7 @@
Overview
Layout Attribute
- Use the layout attribute on an element to align its children
+ Use the layout attribute on an element to arrange its children
horizontally in a row (layout="row"), or vertically in
a column (layout="column").