4 listKind: "blerg.Record",
11 locationDetect: function(l) {
12 var m = l.hash.match(/^#([A-Za-z0-9_-]+)(?:\/(\d+))?$/);
17 permalink: m[2] != undefined,
18 record: parseInt(m[2])
24 this.inherited(arguments);
25 this.usernameChanged();
27 usernameChanged: function() {
28 this.bubble('onSetTitle', {section: '@' + this.username});
29 this.$.records.destroyComponents();
30 this.lastRecord = null;
31 this.$.loadMoreButton.hide();
33 this.loadItems(this.record, this.record);
38 loadItems: function(from, to) {
39 this.inherited(arguments);
42 if (from != undefined && to != undefined) {
43 url = baseURL + '/get/' + this.username + '/' + from + '-' + to;
45 url = baseURL + '/get/' + this.username;
48 var req = new enyo.Ajax({
51 req.response(function(inSender, inResponse) {
53 this.$.loadMoreButton.hide();
55 this.$.loadMoreButton.show();
58 for (var i = 0; i < inResponse.length; i++) {
59 inResponse[i].author = this.username;
62 this.addItems(inResponse);