Merge pull request #17 from ToonSpinISAAC/master
Use strict comparisons when testing for settings with no value. Fixes #16
This commit is contained in:
commit
6e8f9efe3a
2 changed files with 2 additions and 2 deletions
|
@ -640,7 +640,7 @@ $opcache = OpCacheService::init($options);
|
|||
var vShow;
|
||||
if (directive.v === true || directive.v === false) {
|
||||
vShow = React.createElement('i', {}, directive.v.toString());
|
||||
} else if (directive.v == '') {
|
||||
} else if (directive.v === '') {
|
||||
vShow = React.createElement('i', {}, 'no value');
|
||||
} else {
|
||||
vShow = directive.v;
|
||||
|
|
|
@ -123,7 +123,7 @@ var Directives = React.createClass({
|
|||
var vShow;
|
||||
if (directive.v === true || directive.v === false) {
|
||||
vShow = React.createElement('i', {}, directive.v.toString());
|
||||
} else if (directive.v == '') {
|
||||
} else if (directive.v === '') {
|
||||
vShow = React.createElement('i', {}, 'no value');
|
||||
} else {
|
||||
vShow = directive.v;
|
||||
|
|
Loading…
Reference in a new issue