mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
renamed html2canvas.log to h2clog (minifies better)
renamed the html2canvas.canvasContext to h2cRenderContext, it's used by both backends and thus not canvas specific
This commit is contained in:
10
src/Core.js
10
src/Core.js
@ -10,11 +10,13 @@ var html2canvas = {};
|
||||
|
||||
html2canvas.logging = false;
|
||||
|
||||
html2canvas.log = function (a) {
|
||||
function h2clog(a) {
|
||||
if (html2canvas.logging && window.console && window.console.log) {
|
||||
window.console.log(a);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
html2canvas.log = h2clog; // for compatibility with the jquery plugin
|
||||
|
||||
html2canvas.Util = {};
|
||||
|
||||
@ -140,8 +142,8 @@ html2canvas.Util.Children = function(el) {
|
||||
try {
|
||||
children = $(el).contents();
|
||||
} catch (ex) {
|
||||
html2canvas.log("html2canvas.Util.Children failed with exception: " + ex.message);
|
||||
h2clog("html2canvas.Util.Children failed with exception: " + ex.message);
|
||||
children = [];
|
||||
}
|
||||
return children;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user