[Pkg-javascript-commits] [pdf.js] 100/161: [Firefox] Lazy load network.js in PdfStreamConverter.js

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 14:16:34 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 2017f7925ec21f5f6db248fdfaefd7ff8c83496c
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Fri Mar 21 17:39:55 2014 +0100

    [Firefox] Lazy load network.js in PdfStreamConverter.js
---
 extensions/firefox/content/PdfStreamConverter.jsm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/extensions/firefox/content/PdfStreamConverter.jsm b/extensions/firefox/content/PdfStreamConverter.jsm
index f022c3c..9e455a7 100644
--- a/extensions/firefox/content/PdfStreamConverter.jsm
+++ b/extensions/firefox/content/PdfStreamConverter.jsm
@@ -39,7 +39,9 @@ const MAX_STRING_PREF_LENGTH = 128;
 Cu.import('resource://gre/modules/XPCOMUtils.jsm');
 Cu.import('resource://gre/modules/Services.jsm');
 Cu.import('resource://gre/modules/NetUtil.jsm');
-Cu.import('resource://pdf.js/network.js');
+
+XPCOMUtils.defineLazyModuleGetter(this, 'NetworkManager',
+  'resource://pdf.js/network.js');
 
 XPCOMUtils.defineLazyModuleGetter(this, 'PrivateBrowsingUtils',
   'resource://gre/modules/PrivateBrowsingUtils.jsm');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list