update code to reflect comment

This commit is contained in:
Giulio Gratta
2013-10-17 11:30:54 -07:00
parent 1fad68b5ca
commit db802fb543

View File

@@ -54,7 +54,7 @@ class @TrackChanges
keyOfLatestChange = 0
@tracked_changes = @$(@tracked_changes_sel)
@tracked_changes.each ->
key = parseInt($(@).attr('data-cid'))
key = $(@).data('cid')
if key > keyOfLatestChange
keyOfLatestChange = key
@tracker.rejectChange('[data-cid="'+ keyOfLatestChange + '"]')