diff options
| author | Kai Compagner | 2010-07-14 12:08:55 -0700 |
|---|---|---|
| committer | Kai Compagner | 2010-07-14 12:08:55 -0700 |
| commit | 9998b8dcbb2674ac680fd6598aea0840e69c0e1b (patch) | |
| tree | 069df1c8fc9ce1ae39af468ada45e6597d085eb0 /src | |
| parent | 32361d03a147213747762e17d279639666ed85fb (diff) | |
| download | angular.js-9998b8dcbb2674ac680fd6598aea0840e69c0e1b.tar.bz2 | |
fix undefine style
Diffstat (limited to 'src')
| -rw-r--r-- | src/directives.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directives.js b/src/directives.js index a333c4c4..6b81d864 100644 --- a/src/directives.js +++ b/src/directives.js @@ -255,7 +255,7 @@ angularDirective("ng:hide", function(expression, element){ angularDirective("ng:style", function(expression, element){ return function(element){ this.$onEval(function(){ - element.css(this.$eval(expression)); + element.css(this.$eval(expression) || {}); }, element); }; }); |
