emscripten Humble Cloud interface
Edward Rudd
2014-09-17 10a81851546af1e527d7d6b837d3a01011eadc1b

use different approach to set initial CLOUD_PROVIDERS (based on latest emscripten Module init)

2 files modified
4 ■■■■ changed files
humble_cloud/cloud_file.js 2 ●●● patch | view | raw | blame | history
humble_cloud/urkle_cloud.js 2 ●●● patch | view | raw | blame | history
humble_cloud/cloud_file.js
@@ -78,7 +78,7 @@
var CLOUD_PROVIDERS;
if (!CLOUD_PROVIDERS) CLOUD_PROVIDERS = (typeof CLOUD_PROVIDERS !== 'undefined' ? CLOUD_PROVIDERS : null) || {};
if (typeof CLOUD_PROVIDERS === 'undefined') CLOUD_PROVIDERS = eval('(function() { try { return CLOUD_PROVIDERS || {} } catch(e) { return {} } })()');
(function () {
  'use-strict';
humble_cloud/urkle_cloud.js
@@ -1,6 +1,6 @@
// Boiler plate to setup cloud providers registry
var CLOUD_PROVIDERS;
if (!CLOUD_PROVIDERS) CLOUD_PROVIDERS = (typeof CLOUD_PROVIDERS !== 'undefined' ? CLOUD_PROVIDERS : null) || {};
if (typeof CLOUD_PROVIDERS === 'undefined') CLOUD_PROVIDERS = eval('(function() { try { return CLOUD_PROVIDERS || {} } catch(e) { return {} } })()');
(function() {
    // @todo: This may need adjusting to support fetching binary.