This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Davide Lattanzio | |
email = [email protected] | |
[push] | |
default = simple | |
[alias] | |
co = checkout | |
br = branch | |
brv = branch -avv | |
ci = commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* This is very useful when you have a broken html with missing files | |
* ie: you save an html page but you miss all the resources | |
* | |
* @author Davide Lattanzio | |
* @email [email protected] | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I think the problem is that when you do that: | |
PlacesLocal.add(record.data); | |
There's an id field with a value in record.data. Hence, the record won't be considered new. It won't be considered modified either, because it has not be modified, and it won't be considered deleted either (the explaination is left as an exercice to the reader). | |
In other words, for the store, there's nothing to sync. Mission complete. | |
Here's the code of getNewRecords, that is used in the sync method: | |
function() { |