This commit is contained in:
Nicolas Stepien 2013-01-15 15:42:01 +01:00
parent d0093a419f
commit a7f255fa26
3 changed files with 5 additions and 6 deletions

View File

@ -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') {

View File

@ -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

View File

@ -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.