Skip to content
Browse files

A few more updates

  • Loading branch information...
1 parent 12be34b commit 8b5a56bdddff19a8e3bcc3867907b81341c73f0a @davglass davglass committed Dec 17, 2010
Showing with 14 additions and 6 deletions.
  1. +13 −5 lib/yui3-config.js
  2. +1 −1 package.json
View
18 lib/yui3-config.js
@@ -69,12 +69,20 @@ module.exports = {
t = t || 'info';
m = (m) ? this.consoleColor(' (' + m.toLowerCase() + '):', 35) : '';
+ if (str === null) {
+ str = 'null';
+ }
+
if ((typeof str === 'object') || str instanceof Array) {
- //Should we use this?
- if (str.tagName || str._yuid || str._query) {
- str = str.toString();
- } else {
- str = sys.inspect(str);
+ try {
+ //Should we use this?
+ if (str.tagName || str._yuid || str._query) {
+ str = str.toString();
+ } else {
+ str = sys.inspect(str);
+ }
+ } catch (e) {
+ //Fail catcher
}
}
View
2 package.json
@@ -21,7 +21,7 @@
"main": "./lib/node-yui3",
"bin" : { "yui3docs" : "./cli.js" },
"dependencies": {
- "yui3-core": ">=2010.11.03",
+ "yui3-core": ">=3.2.0",
"jsdom": ">=0.1.19",
"htmlparser": ">=1.6.2",
"express": ">=1.0.0",

0 comments on commit 8b5a56b

Please sign in to comment.
Something went wrong with that request. Please try again.