Skip to content

Commit

Permalink
Remove user parameter fix ups.
Browse files Browse the repository at this point in the history
Remove parameter fix ups to the `generate` and `regenerate` functions.

Closes #117.
  • Loading branch information
flatheadmill committed Jun 25, 2013
1 parent a230638 commit 658f296
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,11 +757,6 @@
function regenerate (page, parameters, callback) {
var okay = validator(callback);

if (typeof parameters == "function") {
callback = parameters;
parameters = {};
}

var url = normalize(page.template.url);
fetch(url, okay(rebase));

Expand All @@ -776,11 +771,6 @@
function generate (url, parameters, callback) {
var okay = validator(callback);

if (typeof parameters == "function") {
callback = parameters;
parameters = {};
}

url = absolutize('/', normalize(url));
fetch(url, okay(paginate));

Expand Down

0 comments on commit 658f296

Please sign in to comment.