Console errors are icky.

This commit is contained in:
Zixaphir 2013-04-22 02:41:18 -07:00
parent d81389fc8a
commit 0b802fdd56
5 changed files with 7 additions and 7 deletions

View File

@ -4827,9 +4827,9 @@
return new Notification('info', message, 2);
},
hashScroll: function() {
var post;
var hash, post;
if (!(post = $.id(this.location.hash.slice(1)))) {
if (!((hash = this.location.hash) && (post = $.id(hash.slice(1))))) {
return;
}
if ((Get.postFromRoot(post)).isHidden) {

View File

@ -4818,9 +4818,9 @@
return new Notification('info', message, 2);
},
hashScroll: function() {
var post;
var hash, post;
if (!(post = $.id(this.location.hash.slice(1)))) {
if (!((hash = this.location.hash) && (post = $.id(hash.slice(1))))) {
return;
}
if ((Get.postFromRoot(post)).isHidden) {

Binary file not shown.

View File

@ -4741,9 +4741,9 @@
return new Notification('info', message, 2);
},
hashScroll: function() {
var post;
var hash, post;
if (!(post = $.id(this.location.hash.slice(1)))) {
if (!((hash = this.location.hash) && (post = $.id(hash.slice(1))))) {
return;
}
if ((Get.postFromRoot(post)).isHidden) {

View File

@ -194,7 +194,7 @@ Header =
new Notification 'info', message, 2
hashScroll: ->
return unless post = $.id @location.hash[1..]
return unless (hash = @location.hash) and post = $.id hash[1..]
return if (Get.postFromRoot post).isHidden
Header.scrollToPost post