Skip to content
Browse files

hygiene

  • Loading branch information...
1 parent 7d58596 commit f9cd60e8397f6a315214788e6e246968e575852d @douglascrockford committed Oct 20, 2011
Showing with 12 additions and 9 deletions.
  1. +12 −9 init_ui.js
View
21 init_ui.js
@@ -1,5 +1,5 @@
// init_ui.js
-// 2011-10-01
+// 2011-10-19
// This is the web browser companion to fulljslint.js. It is an ADsafe
// lib file that implements a web ui by adding behavior to the widget's
@@ -80,8 +80,11 @@ ADSAFE.lib("init_ui", function (lib) {
var title = event.target.getTitle();
if (title) {
ADSAFE.set(option, title,
- ADSAFE.get(option, title) === true ? false :
- ADSAFE.get(option, title) === false ? undefined : true);
+ ADSAFE.get(option, title) === true
+ ? false
+ : ADSAFE.get(option, title) === false
+ ? undefined
+ : true);
}
show_jslint_control();
}
@@ -114,12 +117,12 @@ ADSAFE.lib("init_ui", function (lib) {
maxerr: 50
};
} else {
- option.indent =
- typeof option.indent === 'number' && option.indent >= 0 ?
- option.indent : 4;
- option.maxerr =
- typeof option.maxerr === 'number' && option.maxerr >= 0 ?
- option.maxerr : 50;
+ option.indent = typeof option.indent === 'number' && option.indent >= 0
+ ? option.indent
+ : 4;
+ option.maxerr = typeof option.maxerr === 'number' && option.maxerr >= 0
+ ? option.maxerr
+ : 50;
}
show_options();

0 comments on commit f9cd60e

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