]> git.parisson.com Git - pdf.js.git/commitdiff
using .src
authornotmasteryet <async.processingjs@yahoo.com>
Sun, 28 Aug 2011 20:26:42 +0000 (15:26 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Sun, 28 Aug 2011 20:26:42 +0000 (15:26 -0500)
web/compatibility.js

index 93d9d121b7f632cc7c2b97116e5aff548161e6c5..e9a7691637e81516244b7a2d7c7cb3dd13a79c53 100755 (executable)
     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');