Skip to content
Browse files

manifest support now works.

  • Loading branch information...
1 parent 9d7198b commit e628b25116bec4018673f12f908541ac76979eba Joachim Kainz committed Jun 11, 2012
Showing with 9 additions and 32 deletions.
  1. +3 −17 examples/advanced/index.js
  2. +6 −11 examples/advanced/public/manifest.appcache
  3. +0 −4 public/js/app-cache.js
View
20 examples/advanced/index.js
@@ -10,7 +10,7 @@
module.exports = function (defaults, cb, localProperties, globalProperties, app) {
var pubdirs = [pubdir, twitterbootstrap];
- defaults.useRequireJS = true; // set to false if require.js is not something you want to use
+ defaults.useRequireJS = false; // set to false if require.js is not something you want to use
defaults["public"].forEach(function (dir) {
pubdirs.push(dir);
});
@@ -22,18 +22,8 @@
"less/responsive.less"
];
defaults.trailingScripts = [
- "js/libs/jquery/jquery-1.7.1.js",
- "js/bootstrap-alert.js",
- "js/bootstrap-button.js",
- "js/bootstrap-carousel.js",
- "js/bootstrap-collapse.js",
- "js/bootstrap-dropdown.js",
- "js/bootstrap-modal.js",
- "js/bootstrap-scrollspy.js",
- "js/bootstrap-tab.js",
- "js/bootstrap-tooltip.js",
- "js/bootstrap-transition.js",
- "js/bootstrap-typeahead.js"
+ "js/app-cache.js",
+ "js/libs/jquery/jquery-1.7.1.js"
];
defaults.googleAnalyticsWebPropertyID = "UA-3602945-1";
defaults.title = "More Advanced Site-Manager Example";
@@ -63,10 +53,6 @@
defaults.htmlFiles = [
path.join(templates, "layout.html")
];
- defaults.scripts = [
- "js/libs/modernizr-2.5.2.min.js",
- "js/libs/phonegap-1.4.1.js"
- ];
return cb(undefined, defaults);
};
View
17 examples/advanced/public/manifest.appcache
@@ -1,16 +1,11 @@
-# disabled
CACHE MANIFEST
CACHE:
-/favicon.ico
-css/sticky.css
-js/main.js
+favicon.ico
+less/bootstrap.less
+less/responsive.less
+js/libs/jquery/jquery-1.7.1.js
js/libs/modernizr-2.5.2.min.js
-js/libs/backbone/backbone-0.9.2-amdjs.js
-js/libs/handlebars/handlebars-1.0.0b6.js
-js/libs/zepto-1.0RC1.js
-js/libs/require/domReady-1.0.0.js
-js/libs/require/index-1.0.7.js
-js/libs/require/order-1.0.5.js
-js/libs/require/text-1.0.7.js
js/libs/underscore/underscore-1.3.2-amdjs.js
+js/app-cache.js
+css/sticky.css
View
4 public/js/app-cache.js
@@ -38,10 +38,6 @@
return navigator.onLine;
}
- if (!$('html').attr('manifest')) {
- log('No Cache Manifest listed on the tag.')
- }
-
// Swap in newly download files when update is ready
cache.addEventListener('updateready', function (e) {
// Don't perform "swap" if this is the first cache

0 comments on commit e628b25

Please sign in to comment.
Something went wrong with that request. Please try again.