diff options
| author | Misko Hevery | 2010-03-29 20:25:42 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-03-29 20:25:42 -0700 |
| commit | e55c97debaa0ef8487ece219b6eadbc147ece1f9 (patch) | |
| tree | 5895b2151d639efa5fcdb09d396990d6e089c886 /src/Formatters.js | |
| parent | c655b884e268c8c9b6853d440143953f51b7e7de (diff) | |
| download | angular.js-e55c97debaa0ef8487ece219b6eadbc147ece1f9.tar.bz2 | |
dissabled a lot of tests, and made the core test set pass.
Diffstat (limited to 'src/Formatters.js')
| -rw-r--r-- | src/Formatters.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Formatters.js b/src/Formatters.js index f2d5d33e..402e8a2b 100644 --- a/src/Formatters.js +++ b/src/Formatters.js @@ -9,7 +9,7 @@ extend(angularFormatter, { function(obj) { return obj ? obj.join(", ") : obj; }, function(value) { var list = []; - foreach(value.split(','), function(item){ + foreach((value || '').split(','), function(item){ item = trim(item); if (item) list.push(item); }); @@ -18,6 +18,6 @@ extend(angularFormatter, { ), 'trim':formater( - function(obj) { return obj ? $.trim("" + obj) : ""; } + function(obj) { return obj ? trim("" + obj) : ""; } ) }); |
