0.3.4 • Published 8 years ago

properjs-pushstate v0.3.4

Weekly downloads
8
License
-
Repository
github
Last release
8 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

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.1

8 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago