aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Angular.js1
-rw-r--r--src/directives.js4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 28ece3d1..aeb1db4f 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -69,7 +69,6 @@ var _undefined = undefined,
$function = 'function',
$length = 'length',
$name = 'name',
- $none = 'none',
$noop = 'noop',
$null = 'null',
$number = 'number',
diff --git a/src/directives.js b/src/directives.js
index d800aa80..d2f24a31 100644
--- a/src/directives.js
+++ b/src/directives.js
@@ -733,7 +733,7 @@ angularDirective("ng:class-even", ngClass(function(i){return i % 2 === 1;}));
angularDirective("ng:show", function(expression, element){
return function(element){
this.$onEval(function(){
- element.css($display, toBoolean(this.$eval(expression)) ? '' : $none);
+ toBoolean(this.$eval(expression)) ? element.show() : element.hide();
}, element);
};
});
@@ -774,7 +774,7 @@ angularDirective("ng:show", function(expression, element){
angularDirective("ng:hide", function(expression, element){
return function(element){
this.$onEval(function(){
- element.css($display, toBoolean(this.$eval(expression)) ? $none : '');
+ toBoolean(this.$eval(expression)) ? element.hide() : element.show();
}, element);
};
});