TypeError: Cannot set property 'firstrun' of undefined #47

Closed
opened 2015-12-08 17:02:48 -05:00 by nerijusgood · 1 comment
nerijusgood commented 2015-12-08 17:02:48 -05:00 (Migrated from github.com)

Why I always get TypeError: Cannot set property 'firstrun' of undefined in the console. Am I doing something wrong?

Pjax({
    selectors: "main.main",
    switches: {
        "main.main": Pjax.switches.sideBySide
    },
    switchesOptions: {
        ".js-Pjax": {
            classNames: {
                // class added on the element that will be removed
                remove: "Animated Animated--reverse Animate--fast Animate--noDelay",
                // class added on the element that will be added
                add: "Animated",
                // class added on the element when it go backward
                backward: "Animate--slideInRight",
                // class added on the element when it go forward (used for new page too)
                forward: "Animate--slideInLeft"
            }
        }
    }
});
Why I always get `TypeError: Cannot set property 'firstrun' of undefined` in the console. Am I doing something wrong? ``` javascript Pjax({ selectors: "main.main", switches: { "main.main": Pjax.switches.sideBySide }, switchesOptions: { ".js-Pjax": { classNames: { // class added on the element that will be removed remove: "Animated Animated--reverse Animate--fast Animate--noDelay", // class added on the element that will be added add: "Animated", // class added on the element when it go backward backward: "Animate--slideInRight", // class added on the element when it go forward (used for new page too) forward: "Animate--slideInLeft" } } } }); ```
darylteo commented 2016-01-04 23:27:20 -05:00 (Migrated from github.com)

@nerijusgood

new Pjax(...)
@nerijusgood ``` new Pjax(...) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iLoveElysia/pjax#47