fixes
This commit is contained in:
parent
d0093a419f
commit
a7f255fa26
@ -606,7 +606,7 @@
|
||||
$.add(d.head, script);
|
||||
return $.rm(script);
|
||||
},
|
||||
unsafeWindow: unitTesting || window.opera ? window : unsafeWindow !== window ? unsafeWindow : (function() {
|
||||
unsafeWindow: window.opera ? window : unsafeWindow !== window ? unsafeWindow : (function() {
|
||||
var p;
|
||||
p = d.createElement('p');
|
||||
p.setAttribute('onclick', 'return window');
|
||||
@ -1191,7 +1191,7 @@
|
||||
if (this.isClone) {
|
||||
return;
|
||||
}
|
||||
_ref = $$('.deadlink', post.blockquote);
|
||||
_ref = $$('.deadlink', this.nodes.comment);
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
deadlink = _ref[_i];
|
||||
if (deadlink.parentNode.className === 'prettyprint') {
|
||||
|
||||
@ -167,9 +167,8 @@ $.extend $,
|
||||
$.rm script
|
||||
# http://mths.be/unsafewindow
|
||||
unsafeWindow:
|
||||
if unitTesting or # unit testing
|
||||
window.opera # Opera
|
||||
window
|
||||
if window.opera # Opera
|
||||
window
|
||||
else if unsafeWindow isnt window # Firefox
|
||||
unsafeWindow
|
||||
else # Chrome
|
||||
|
||||
@ -545,7 +545,7 @@ Quotify =
|
||||
cb: @node
|
||||
node: ->
|
||||
return if @isClone
|
||||
for deadlink in $$ '.deadlink', post.blockquote
|
||||
for deadlink in $$ '.deadlink', @nodes.comment
|
||||
if deadlink.parentNode.className is 'prettyprint'
|
||||
# Don't quotify deadlinks inside code tags,
|
||||
# un-`span` them.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user