lib/client/link.js
function createStateObject(page, callback) {

    // This callback function will create a change table state object
    var create = function () {
      var query = url.parse(page);
      var presenter = piccolo.build.router.parse(query.pathname);

      var state = {
        'resolved': presenter,
        'namespace': 'piccolo',
        'query': query
      };

      callback(state);
    };

    piccolo.once('ready.router', create);
  }
function createStateObject(page, callback) {

    // This callback function will create a change table state object
    var create = function () {
      var query = url.parse(page);
      var presenter = piccolo.build.router.parse(query.pathname);

      var state = {
        'resolved': presenter,
        'namespace': 'piccolo',
        'query': query
      };

      callback(state);
    };

    piccolo.once('ready.router', create);
  }
function createStateObject ( page , callback ) { // This callback function will create a change table state object var create = function ( ) { var query = url . parse ( page ) ; var presenter = piccolo . build . router . parse ( query . pathname ) ; var state = { 'resolved' : presenter , 'namespace' : 'piccolo' , 'query' : query } ; callback ( state ) ; } ; piccolo . once ( 'ready.router' , create ) ; }
Parse a page path and return state object
Parse a page path and return state object