diff options
Diffstat (limited to 'src/directives.js')
| -rw-r--r-- | src/directives.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directives.js b/src/directives.js index 64a06359..70398c81 100644 --- a/src/directives.js +++ b/src/directives.js @@ -738,7 +738,7 @@ angularDirective("ng:class-even", ngClass(function(i){return i % 2 === 1;})); angularDirective("ng:show", function(expression, element){ return function(element){ this.$onEval(function(){ - toBoolean(this.$eval(expression)) ? element.show() : element.hide(); + element.css('display', toBoolean(this.$eval(expression)) ? '' : 'none'); }, element); }; }); @@ -779,7 +779,7 @@ angularDirective("ng:show", function(expression, element){ angularDirective("ng:hide", function(expression, element){ return function(element){ this.$onEval(function(){ - toBoolean(this.$eval(expression)) ? element.hide() : element.show(); + element.css('display', toBoolean(this.$eval(expression)) ? 'none' : ''); }, element); }; }); |
