remove unused setPreload function

closes #7354
This commit is contained in:
Senya 2017-03-06 19:12:31 +02:00 committed by Steffen van Bergerem
parent e82005c517
commit 0e28cfadb2
No known key found for this signature in database
GPG key ID: 315C9787D548DC6B
2 changed files with 1 additions and 5 deletions

View file

@ -1,6 +1,7 @@
# 0.6.5.0 # 0.6.5.0
## Refactor ## Refactor
* Remove unused setPreload function [#7354](https://github.com/diaspora/diaspora/pull/7354)
## Bug fixes ## Bug fixes

View file

@ -60,11 +60,6 @@ var app = {
return !!(window.gon.preloads && window.gon.preloads[prop]); //returning boolean variable so that parsePreloads, which cleans up properly is used instead return !!(window.gon.preloads && window.gon.preloads[prop]); //returning boolean variable so that parsePreloads, which cleans up properly is used instead
}, },
setPreload : function(prop, val) {
window.gon.preloads = window.gon.preloads || {};
window.gon.preloads[prop] = val;
},
parsePreload : function(prop) { parsePreload : function(prop) {
if(!app.hasPreload(prop)) { return; } if(!app.hasPreload(prop)) { return; }