Fix a variety of typos.
This commit is contained in:
@ -106,7 +106,7 @@ window.chat.genPostData = function(isFaction, storageHash, getOlderMsgs) {
|
||||
// Currently this edge case is not handled. Let’s see if this is a
|
||||
// problem in crowded areas.
|
||||
$.extend(data, {minTimestampMs: min});
|
||||
// when requesting with an acutal minimum timestamp, request oldest rather than newest first.
|
||||
// when requesting with an actual minimum timestamp, request oldest rather than newest first.
|
||||
// this matches the stock intel site, and ensures no gaps when continuing after an extended idle period
|
||||
if (min > -1) $.extend(data, {ascendingTimestampOrder: true});
|
||||
}
|
||||
|
@ -64,18 +64,18 @@ window.runHooks = function(event, data) {
|
||||
if(VALID_HOOKS.indexOf(event) === -1) throw('Unknown event type: ' + event);
|
||||
|
||||
if(!_hooks[event]) return true;
|
||||
var interupted = false;
|
||||
var interrupted = false;
|
||||
$.each(_hooks[event], function(ind, callback) {
|
||||
try {
|
||||
if (callback(data) === false) {
|
||||
interupted = true;
|
||||
interrupted = true;
|
||||
return false; //break from $.each
|
||||
}
|
||||
} catch(err) {
|
||||
console.error('error running hook '+event+', error: '+err);
|
||||
}
|
||||
});
|
||||
return !interupted;
|
||||
return !interrupted;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user