Skip to content

Commit

Permalink
also patch less.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vangheem committed May 14, 2015
1 parent 4c3e679 commit bd1f9ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Products/CMFPlone/static/components/less/dist/less.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,15 @@ FileManager.prototype.loadFile = function loadFile(filename, currentDirectory, o
return;
}

this.doXHR(href, options.mime, function doXHRCallback(data, lastModified) {
/* XXX Plone hack to always re-download resource TTW */
var url = href;
if(url.indexOf('?') === -1){
url += '?';
}else{
url += '&';
}
url = url + "bust=" + (new Date()).getTime();
this.doXHR(url, options.mime, function doXHRCallback(data, lastModified) {
// per file cache
fileCache[href] = data;

Expand Down Expand Up @@ -564,7 +572,6 @@ function loadStyles(modifyVars) {
}

function loadStyleSheet(sheet, callback, reload, remaining, modifyVars) {

var instanceOptions = clone(options);
addDataAttr(instanceOptions, sheet);
instanceOptions.mime = sheet.type;
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/static/components/r.js/dist/r.js
Original file line number Diff line number Diff line change
Expand Up @@ -25821,6 +25821,7 @@ define('build', function (require) {
d.resolve(require._cachedRawText[path]);
return d.promise;
} else {
/* XXX Plone hack to always re-download resource TTW */
var url = path;
if(url.indexOf('?') === -1){
url += '?';
Expand Down

0 comments on commit bd1f9ba

Please sign in to comment.