Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Switch to IDs in data attributes for model cache lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbasta committed Sep 6, 2013
1 parent fd2a981 commit 4bba7c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/media/js/views/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ define('views/collection',
);

builder.onload('main', function(data) {
// This might be/probably will be a slug, so change it to ID.
$('.main').data('id', data.id);

data.apps.forEach(function(v) {
app_model.cast(v);
});
Expand Down

0 comments on commit 4bba7c2

Please sign in to comment.