Code Cleanup + Remove unused dependencies

This commit is contained in:
Ghislain Loaec 2015-02-07 12:08:13 +01:00
parent 2445c6684f
commit 66440cb35b
4 changed files with 1 additions and 32 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

File diff suppressed because one or more lines are too long

View File

@ -397,6 +397,7 @@ var app = {
return false;
}
// Keep try to navigate until previous animation is done.
if(app.isAnimating) {
setTimeout(function(){
app.navigate(page, back);
@ -490,7 +491,6 @@ var app = {
app.hashHistory = app.hashHistory.slice(0, -1);
back = true;
} else {
//if(!app.pages[page].external)
app.hashHistory.push(hash);
}
} else {
@ -506,25 +506,6 @@ var app = {
// Various Javascript Helpers
utils: {
updateEl: function(selector, html){
var $el = document.querySelectorAll(selector);
for (var i = 0; i < $el.length; i++)
$el[i].innerHTML = html;
},
renderLinks: function(links){
var html = "";
for(var i = 0; i < links.length; i++){
var link = links[i];
var page = app.pages[link];
html += '<a href="#'+link+'" ';
html += 'class="list-group-item" >';
html += app.pages[link].title;
html += '</a>';
}
return html;
},
trim: function(str){
return (str || '').replace(/^\s+|\s+$/g, '');
},