SAP/sap.github.com — pull request #2 by gruiz17 (2014-12-11 04:15:44+00:00)
Title: 2 changes: bugfix for filter clicking, double equal fix

Hi! I'm a future SAP employee starting in January.

I made two changes:

* On the SAP GitHub website right now, what happens when I click the filters a bunch of times is that it'll start to slow down a lot with subsequent filter clicks:

![uh_oh](https://cloud.githubusercontent.com/assets/2757082/5388880/2db25228-80a8-11e4-9f89-55a0b50d78fb.gif)

This is because the current code has the `$('.filter').on('click', function() {...})` code within `displayObjects()`, causing it to load the `filteredObjects` an exponential amount of times, like so:

![exponential_growth](https://cloud.githubusercontent.com/assets/2757082/5388907/9667a944-80a8-11e4-8c11-e8bc16b0d305.gif)

I put the code in `$(document).ready(function(){...})` instead, and it now works okay:

![much_better](https://cloud.githubusercontent.com/assets/2757082/5388937/e7bd2346-80a8-11e4-82bd-087b633a702e.gif)

* I changed two instances of `!=` to `!==` because it's the more strict way to check inequality in JavaScript.