This package has been deprecated

Author message:

no longer utilizing this module

properjs-pushstate

0.3.4 • Public • Published

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();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i properjs-pushstate

Weekly Downloads

0

Version

0.3.4

License

none

Last publish

Collaborators

  • kitajchuk