fixed bug with appcache

This commit is contained in:
coderaiser 2012-12-11 09:53:04 -05:00
parent a81dc6e75f
commit fb2faec364
5 changed files with 22 additions and 22 deletions

View file

@ -188,6 +188,8 @@ Just propose install git and clone from github repo.
* Fixed bug with client.js minifying.
* Fixed bug with appcache.
2012.10.01, Version 0.1.7

View file

@ -80,7 +80,7 @@
{'//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js' : './lib/client/jquery.js'}];
if(srv.Minify._allowed.css)
lFiles.push('./min/all.min.css');
lFiles.push('node_modules/minify/min/all.min.css');
lAppCache.addFiles(lFiles);
lAppCache.createManifest();

View file

@ -3,7 +3,7 @@
"appcache" : false,
"cache" : {"allowed" : false},
"minification" : {
"js" : true,
"js" : false,
"css" : true,
"html" : true,
"img" : true

View file

@ -4,20 +4,19 @@ var CloudCommander, DOM, Dropbox;
(function(){
"use strict";
const cloudcmd = CloudCommander,
CHOOSER_API = 'https://www.dropbox.com/static/api/1/dropbox.js';
var CLIENT_ID,
DropBoxStore = {},
options = {
linkType: "direct",
success: function(files) {
console.log("Here's the file link:" + files[0].link);
},
cancel: function() {
console.log('Chose something');
}
};
var cloudcmd = CloudCommander,
CHOOSER_API = 'https://www.dropbox.com/static/api/1/dropbox.js',
CLIENT_ID,
DropBoxStore = {},
options = {
linkType: "direct",
success: function(files) {
console.log("Here's the file link:" + files[0].link);
},
cancel: function() {
console.log('Chose something');
}
};
/* PRIVATE FUNCTIONS */
@ -35,7 +34,7 @@ var CloudCommander, DOM, Dropbox;
func : DropBoxStore.choose
});
var lDropBoxId = pConfig.dropbox_chooser_key;
lElement.setAttribute('data-app-key', lDropBoxId);
document.body.appendChild(lElement);
@ -43,14 +42,13 @@ var CloudCommander, DOM, Dropbox;
console.timeEnd('dropbox load');
});
}
DropBoxStore.choose = function(){
Dropbox.choose(options);
};
DropBoxStore.init = function(){
load();
this.init = null;
};
cloudcmd.DropBox = DropBoxStore;

View file

@ -59,11 +59,11 @@
exports.createManifest = function(){
var lAllNames = main.require('hashes');
var lAllNames = main.require('node_modules/minify/hashes');
if(lAllNames)
for(var lName in lAllNames){
if(lName.indexOf('min') > 0)
lName = './min/' + lName;
lName = 'node_modules/minify/min/' + lName;
exports.watch(lName);
}
processManifest();