Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Big refactoring + unit tests; allow setting the number of loans to show
* Add UI for changing the number of loans to fetch * Create a <style> element to put the map CSS * Use that single, static element instead of creating a lot of anonymous <style> elements all the time * Uppercase KivaMap and KivaData * Make KivaMap receive two new parameters: a CSS selector for the map HTML and a CSS selector for the map CSS * Big refactoring of KivaData: add 'dataSource' attribute, pointing to the source to get the loan data from; add 'numberLoans' attribute, with the number of loans to fetch; make the loan data loading much more flexible *and* testable; add 'eachLoan' iterator to avoid accessing 'loanInfo' directly from the outside * Add two Javascript fixture files * Add a lot of new unit tests
- Loading branch information
Showing
7 changed files
with
265 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.