Replace Object.keys with _.keys
parent
e4975e3f25
commit
5a4982942f
|
@ -114,7 +114,7 @@ class IssueDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
return @scope.usersById[userId]?.photo
|
return @scope.usersById[userId]?.photo
|
||||||
|
|
||||||
countChanges: (comment) ->
|
countChanges: (comment) ->
|
||||||
return Object.keys(comment.values_diff).length
|
return _.keys(comment.values_diff).length
|
||||||
|
|
||||||
getChangeText: (change) ->
|
getChangeText: (change) ->
|
||||||
if _.isArray(change)
|
if _.isArray(change)
|
||||||
|
|
Loading…
Reference in New Issue