Permalink
Browse files

Rename lowerCaseName -> lowerCaseTitle within models/pageelement.js.

This makes the terminology a bit simpler. The fragment for a result is
always #lowerCaseLanguageName/lowerCaseTitle.
  • Loading branch information...
1 parent 98f8ed7 commit 6f513c6073f94172a9fb1146dc6b30a4cc702fb3 @yonran yonran committed Apr 11, 2012
@@ -9,7 +9,7 @@ define([
model: PageElement,
comparator: function(model) {
- return model.get('lowerCaseName');
+ return model.get('lowerCaseTitle');
}
});
@@ -15,7 +15,7 @@ define([
},
initialize: function() {
- this.set({'lowerCaseName': this.get('name').toLowerCase()});
+ this.set({'lowerCaseTitle': this.get('name').toLowerCase()});
},
});
@@ -81,7 +81,7 @@ define([
for (var i = 0; i < this.options.pageElements.length; ++i) {
var pageElement = this.options.pageElements.at(i);
- var visible = query.test(pageElement.get('lowerCaseName'));
+ var visible = query.test(pageElement.get('lowerCaseTitle'));
pageElement.set({ tocVisible: visible });
if (visible) {
if (firstVisibleElement === null) {

0 comments on commit 6f513c6

Please sign in to comment.