Merge branch 'v3'

Conflicts:
	CHANGELOG.md
This commit is contained in:
Zixaphir 2014-03-26 15:32:57 -07:00
commit 34dd4ba96a
4 changed files with 54 additions and 54 deletions

View File

@ -1,3 +1,11 @@
**Zixaphir**:
- Rewrote "Scroll to post quoting you" functionality, solving several small issues with it.
- Improved Linkifier link detection.
- Fixed an issue with Thread Updater intervals not saving correctly.
- Added Oneechan's Backlink Icons features.
- Added an option to shrink file information text.
- Small performance improvements.
### v2.9.7
*2014-03-20*

View File

@ -7661,7 +7661,7 @@
len = posts.length - 1;
index = i = posts.indexOf(post);
while (true) {
if (index === (i = i === 0 ? len : i === len ? 0 : type === 'prev' ? i - 1 : i + 1)) {
if (index === (i = type === 'prev' ? i === 0 ? len : i - 1 : i === len ? 0 : i + 1)) {
break;
}
post = posts[i];

View File

@ -3096,9 +3096,7 @@
Callbacks.prototype.execute = function(nodes) {
var cb, err, errors, i, j, name, node;
i = 0;
c.time("Features");
while (name = this.keys[i++]) {
c.time(name);
j = 0;
cb = this[name];
while (node = nodes[j++]) {
@ -3117,9 +3115,7 @@
});
}
}
c.timeEnd(name);
}
c.timeEnd("Features");
if (errors) {
return Main.handleErrors(errors);
}
@ -3872,15 +3868,12 @@
var boardID, keys, now, _i, _len;
now = Date.now();
if ((this.data.lastChecked || 0) > now - 2 * $.HOUR) {
c.log('return now');
return;
}
keys = Object.keys(this.data.boards);
if (!keys.length) {
c.log('return empty');
return;
}
c.log('no return');
for (_i = 0, _len = keys.length; _i < _len; _i++) {
boardID = keys[_i];
this.deleteIfEmpty({
@ -5460,7 +5453,6 @@
return Index.scrollToIndex();
},
parse: function(pages, pageNum) {
c.time("Generating Index");
Index.parseThreadList(pages);
Index.buildThreads();
Index.sort();
@ -5468,8 +5460,7 @@
Index.pageNav(pageNum);
return;
}
Index.buildIndex();
c.timeEnd("Generating Index");
return Index.buildIndex();
},
parseThreadList: function(pages) {
var i, j, live, page, thread, threads;
@ -7723,7 +7714,7 @@
len = posts.length - 1;
index = i = posts.indexOf(post);
while (true) {
if (index === (i = i === 0 ? len : i === len ? 0 : type === 'prev' ? i - 1 : i + 1)) {
if (index === (i = type === 'prev' ? i === 0 ? len : i - 1 : i === len ? 0 : i + 1)) {
break;
}
post = posts[i];

View File

@ -66,12 +66,13 @@ QuoteMarkers =
index = i = posts.indexOf post
while true
break if index is (
i = if i is 0
len
i = if type is 'prev'
if i is 0
len
else
i - 1
else if i is len
0
else if type is 'prev'
i - 1
else
i + 1
)