Update assets.js: init fix, jaws.log functions #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes:
-- Fixed for jaws.init unit testing
-- Fixed useConsole to use_console and useLogElement to use_log_element
to match style guide.
-- Added jaws.log.on (default true) for turning logging on and off.
-- Added jaws.log.error, which writes to console.error (if it exists,
use_console is true, and log.on is true) or calls jaws.log with string
"[ERROR]" + argument
-- Added jaws.log.warn, which writes to console.warn (if it exists,
use_console is true, and log.on is true) or calls jaws.log with string
"[WARNING]" + argument
-- Added jaws.log.info, which writes to console.info (if it exists,
use_console is true, and log.on is true) or calls jaws.log with string
"[INFO]" + argument
-- Added jaws.log.debug, which writes to console.debug (if it exists,
use_console is true, and log.on is true) or calls jaws.log with string
"[DEBUG]" + argument
-- All internal testing of function arguments now use the additional
jaws.log functionality