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