mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-26 11:10:25 +00:00
minor per improvement
This commit is contained in:
parent
1a730a9996
commit
2ac66b78f0
1 changed files with 1 additions and 1 deletions
|
|
@ -224,8 +224,8 @@ function ngClass(selector) {
|
|||
var existing = element[0].className + ' ';
|
||||
return function(element){
|
||||
this.$onEval(function(){
|
||||
var value = this.$eval(expression);
|
||||
if (selector(this.$index)) {
|
||||
var value = this.$eval(expression);
|
||||
if (isArray(value)) value = value.join(' ');
|
||||
element[0].className = trim(existing + value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue