0.3.4 • Published 10 years ago

properjs-pushstate v0.3.4

Weekly downloads
8
License
-
Repository
github
Last release
10 years ago

PushState

Handles history pushstate/popstate.

Installation

npm install properjs-pushstate --save-dev

Usage

var PushState = require( "properjs-pushstate" ),
    pushstate = new PushState({
        // Defaults:

        // Force Hash state instead ( false by default )
        forceHash: true
    });

pushstate.on( "popstate", function ( url, state ) {
    // Handle pop
    // state.uid
});

// Push state to address bar
pushstate.push( url );

// Go back in history
pushstate.goBack();

// Go forward in history
pushstate.goForward();
0.3.4

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

11 years ago

0.1.0

11 years ago