pagerjs icon indicating copy to clipboard operation
pagerjs copied to clipboard

'activePage$' not set in production environment

Open kristofferse opened this issue 12 years ago • 1 comments

My code is working fine when i run it in my debugging environment at localhost but in production i get the error Uncaught TypeError: Object #<Object> has no method 'activePage$'.

The rest of pagers seems to work as it should. capture5

Any ideas on what the problem might be?

kristofferse avatar Jul 29 '13 18:07 kristofferse

Sorry for the late reply. I've been on vacation.

Extremely strange. I cannot see anything in the source code that could somehow prevent activePage$. Maybe it is accessed before it is set (in extendWithPage)?

My only tip would be to try changing activePage$ into a property (just after calling pager.extendWithPage) and set a breakpoint on setting the property. Maybe there is some code on your side that in setting activePage$ to null?

finnsson avatar Aug 01 '13 14:08 finnsson