Skip to content
Browse files

Expanded variable names

  • Loading branch information...
1 parent 6065c15 commit f0bd26c5435e4f6f0a1366d5972c1c436d00f005 @davglass davglass committed Jan 19, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/view/index.js
View
12 lib/view/index.js
@@ -26,12 +26,12 @@ function View(data, templateName) {
mix the data in and reset the `self.examples` before the
below code mixes them.
*/
- util.each(self.pages, function(n) {
- if (n.examples) {
- util.each(n.examples, function(e, k) {
- if (e.name === self.templateName) {
- util.mix(self, e);
- self.examples = n.examples;
+ util.each(self.pages, function(page) {
+ if (page.examples) {
+ util.each(page.examples, function(example) {
+ if (example.name === self.templateName) {
+ util.mix(self, example);
+ self.examples = page.examples;
}
});
}

0 comments on commit f0bd26c

Please sign in to comment.
Something went wrong with that request. Please try again.