Updating enterView/leaveView callbacks to apply only to primary document.
Merge pull request #61 from blois/enter_leave_view

Updating enterView/leaveView callbacks to apply only to primary document...