4 listKind: "blerg.Record",
11 locationDetect: function(l) {
12 var m = l.hash.match(/^#([A-Za-z0-9_-]+)(?:\/(p)?(\d+))?$/);
17 permalink: m[2] != 'p',
18 firstRecord: parseInt(m[3])
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;
33 loadItems: function(from, to) {
34 this.inherited(arguments);
37 if (from != undefined && to != undefined) {
38 url = baseURL + '/get/' + this.username + '/' + from + '-' + to;
40 url = baseURL + '/get/' + this.username;
43 var req = new enyo.Ajax({
46 req.response(function(inSender, inResponse) {
47 for (var i = 0; i < inResponse.length; i++) {
48 inResponse[i].author = this.username;
50 this.addItems(inResponse);