Skip to content

Commit

Permalink
Removed redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
DogAndHerDude committed May 25, 2016
1 parent 5be66a2 commit 4bed269
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 36 deletions.
16 changes: 4 additions & 12 deletions dist/jsRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,25 +467,17 @@ define("../node_modules/almond/almond", function(){});
function noop() { }
exports.noop = noop;
function setView(selector) {
if (selector) {
rootView = document.querySelector(selector);
}
else {
rootView = document.querySelector('.jsroute-view');
}
selector = selector || '.jsroute-view';
rootView = document.querySelector(selector);
}
exports.setView = setView;
function getView() {
return rootView;
}
exports.getView = getView;
function setRoot(selector) {
if (selector) {
rootElement = document.querySelector(selector);
}
else {
rootElement = document.querySelector('.jsroute-app');
}
selector = selector || '.jsroute-app';
rootElement = document.querySelector(selector);
}
exports.setRoot = setRoot;
function getRoot() {
Expand Down
Loading

0 comments on commit 4bed269

Please sign in to comment.