finnsson/pagerjs — pull request #147 by alvingonzales (2013-10-14 09:45:35+00:00)
Title: Do not overwrite nameParam on view model if it is already defined (fixes #100)

Ussue #100 This seems to be due to augmentContext not properly checking if the viewmodel already has a property of the same name as nameParam. augmentContext overwrites it with a new observable, so old bindings relying on the old observable are not updated.

This fix checks if the viewmodel already has the property, and uses that instead.