diff --git a/build.xml b/build.xml
index 232c257..9376385 100644
--- a/build.xml
+++ b/build.xml
@@ -75,6 +75,7 @@
+
diff --git a/src/Preload.js b/src/Preload.js
index 9bbebf7..037ae5d 100644
--- a/src/Preload.js
+++ b/src/Preload.js
@@ -168,7 +168,7 @@ _html2canvas.Preload = function( options ) {
/*
if (background_image && background_image !== "1" && background_image !== "none" && background_image.substring(0,7) !== "-webkit" && background_image.substring(0,3)!== "-o-" && background_image.substring(0,4) !== "-moz"){
// TODO add multi image background support
- src = html2canvas.Util.backgroundImage(background_image.split(",")[0]);
+ src = _html2canvas.Util.backgroundImage(background_image.split(",")[0]);
methods.loadImage(src); */
}
}
diff --git a/src/Util.js b/src/Util.js
index 63708dd..9934691 100644
--- a/src/Util.js
+++ b/src/Util.js
@@ -40,7 +40,7 @@ html2canvas = function( elements, opts ) {
options = _html2canvas.Util.Extend(opts, options);
- options.renderer = options.renderer || html2canvas.Renderer.Canvas( options );
+ options.renderer = options.renderer || _html2canvas.Renderer.Canvas( options );
_html2canvas.logging = options.logging;
options.complete = function( images ) {
@@ -89,4 +89,4 @@ html2canvas = function( elements, opts ) {
html2canvas.log = h2clog; // for renderers
html2canvas.Renderer = {
Canvas: undefined // We are assuming this will be used
-};
\ No newline at end of file
+};
diff --git a/src/plugins/bookmarklet.js b/src/plugins/bookmarklet.js
index d9ed5fc..63d14e0 100644
--- a/src/plugins/bookmarklet.js
+++ b/src/plugins/bookmarklet.js
@@ -13,6 +13,8 @@
'src/Preload',
'src/Queue',
'src/Renderer',
+ 'src/Util',
+ 'src/renderers/Canvas',
'src/plugins/jquery.plugin.html2canvas'
],
relFiles = [
diff --git a/src/renderers/Canvas.js b/src/renderers/Canvas.js
index edabb0f..5361bb6 100644
--- a/src/renderers/Canvas.js
+++ b/src/renderers/Canvas.js
@@ -7,7 +7,7 @@
*/
-html2canvas.Renderer.Canvas = function( options ) {
+_html2canvas.Renderer.Canvas = function( options ) {
options = options || {};
@@ -21,11 +21,11 @@ html2canvas.Renderer.Canvas = function( options ) {
if (canvas.getContext){
- html2canvas.log("html2canvas: Renderer: using canvas renderer");
+ h2clog("html2canvas: Renderer: using canvas renderer");
canvasReadyToDraw = true;
} else if ( options.flashcanvas !== undefined ){
usingFlashcanvas = true;
- html2canvas.log("html2canvas: Renderer: canvas not available, using flashcanvas");
+ h2clog("html2canvas: Renderer: canvas not available, using flashcanvas");
var script = doc.createElement("script");
script.src = options.flashcanvas;
@@ -52,7 +52,7 @@ html2canvas.Renderer.Canvas = function( options ) {
window.setTimeout( intervalFunc, 250 );
} else {
- html2canvas.log("html2canvas: Renderer: Can't track when flashcanvas is loaded");
+ h2clog("html2canvas: Renderer: Can't track when flashcanvas is loaded");
}
} else {
@@ -62,7 +62,7 @@ html2canvas.Renderer.Canvas = function( options ) {
})(script, function(){
if (typeof window.FlashCanvas !== "undefined") {
- html2canvas.log("html2canvas: Renderer: Flashcanvas initialized");
+ h2clog("html2canvas: Renderer: Flashcanvas initialized");
window.FlashCanvas.initElement( canvas );
canvasReadyToDraw = true;
@@ -226,4 +226,4 @@ html2canvas.Renderer.Canvas = function( options ) {
return methods;
-};
\ No newline at end of file
+};
diff --git a/src/renderers/SVG.js b/src/renderers/SVG.js
index 835a623..eb4a8f1 100644
--- a/src/renderers/SVG.js
+++ b/src/renderers/SVG.js
@@ -9,7 +9,7 @@
// WARNING THIS file is outdated, and hasn't been tested in quite a while
-html2canvas.Renderer.SVG = function( options ) {
+_html2canvas.Renderer.SVG = function( options ) {
options = options || {};
@@ -203,4 +203,4 @@ html2canvas.Renderer.SVG = function( options ) {
return methods;
-};
\ No newline at end of file
+};