Skip to content

Commit

Permalink
Fixed oversight with persist store mikehostetler#44
Browse files Browse the repository at this point in the history
  • Loading branch information
dcneiner committed Sep 17, 2013
1 parent dcc6a5c commit 4645dc3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/amplify.js
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ if ( amplify.store ) {
$.each( amplify.store.types, function( type ) {
cache[ type ] = function( resource, settings, ajaxSettings, ampXHR ) {
var cacheKey = cache._key( settings.resourceId,
ajaxSettings.url, ajaxSettings.data ),
ajaxSettings.cacheURL(), ajaxSettings.data ),
cached = amplify.store[ type ]( cacheKey );

if ( cached ) {
Expand Down
2 changes: 1 addition & 1 deletion lib/amplify.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/amplify.request.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ if ( amplify.store ) {
$.each( amplify.store.types, function( type ) {
cache[ type ] = function( resource, settings, ajaxSettings, ampXHR ) {
var cacheKey = cache._key( settings.resourceId,
ajaxSettings.url, ajaxSettings.data ),
ajaxSettings.cacheURL(), ajaxSettings.data ),
cached = amplify.store[ type ]( cacheKey );

if ( cached ) {
Expand Down
Loading

0 comments on commit 4645dc3

Please sign in to comment.