From: notmasteryet Date: Sun, 28 Aug 2011 20:26:42 +0000 (-0500) Subject: using .src X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=64b08e3d8224bea374d6af636f703d129220b800;p=pdf.js.git using .src --- diff --git a/web/compatibility.js b/web/compatibility.js index 93d9d12..e9a7691 100755 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -168,12 +168,12 @@ set: function(src) { this.$src = src; if (src.substr(0, 14) != 'data:text/html') { - originalSrcDescriptor['set'].call(this, src); + originalSrcDescriptor.set.call(this, src); return; } // for text/html, using blank document and then // document's open, write, and close operations - originalSrcDescriptor['set'].call(this, 'about:blank'); + originalSrcDescriptor.set.call(this, 'about:blank'); setTimeout((function() { var doc = this.contentDocument; doc.open('text/html');