Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Removed default_route() method
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Nov 12, 2013
1 parent f6434ae commit cedef71
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions library/Zepto/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,21 +154,6 @@ public function __construct($url = null)
$this->url_clean = $this->__get_clean_url($this->url_dirty);
}

/**
* If the router cannot match the current URL to any of the given routes,
* the function passed to this method will be executed instead. This would
* be useful for displaying a 404 page for example.
*
* @param Callable $callback
* @return self
*/
public function default_route($callback)
{
$this->default_route = $callback;

return $this;
}

/**
* Tries to match one of the URL routes to the current URL, otherwise
* execute the default function and return false.
Expand Down

0 comments on commit cedef71

Please sign in to comment.