Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update assets.js: init fix, jaws.log functions #88

Closed
wants to merge 1 commit into from
Closed

Update assets.js: init fix, jaws.log functions #88

wants to merge 1 commit into from

Conversation

videlais
Copy link
Contributor

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

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
@videlais
Copy link
Contributor Author

Opps. That should read "core.js" instead of "assets.js". I have changes for that too and I was looking at the file as I was typing just now.

@videlais videlais closed this Aug 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant