purecloudlabs / fixtable-angular

Angular wrapper for Fixtable grid
MIT License
3 stars 3 forks source link

Prevent unnecessary callbacks with pagingOptions #12

Closed michaelmcauley closed 9 years ago

michaelmcauley commented 9 years ago

The $watch expression on pagingOptions shouldn't fire if only the totalItems changed. Currently, any time the callback is fired (on load, or changing page/pageSize) and the callback updates the totalItems, the $watch gets triggered and the callback fires a second time unnecessarily.

michaelmcauley commented 9 years ago

Fixed in 1.0.2