Use beef.debug in deployJava.js

This commit is contained in:
Brendan Coles
2015-08-04 14:58:34 +00:00
parent 050cc3edfd
commit e22c5ea7e2

View File

@@ -70,16 +70,10 @@ var deployJava = function() {
hattrs.events);
var applet_valid_attrs = hattrs.applet.concat(hattrs.core);
// generic log function, use console.log unless it isn't available
// then revert to alert()
// generic log function
function log(message) {
if ( ! rv.debug ) {return};
if (console.log) {
console.log(message);
} else {
alert(message);
}
beef.debug(message);
}
//checks where given version string matches query
@@ -1298,4 +1292,4 @@ var deployJava = function() {
}
return rv;
}();
}();