vendor/assets/javascripts/webshims/shims/json-storage.js in webshims-rails-1.10.3 vs vendor/assets/javascripts/webshims/shims/json-storage.js in webshims-rails-1.10.6
- old
+ new
@@ -251,11 +251,11 @@
$.webshims.warn('implement cookie-localStorage');
}
$.webshims.isReady('json-storage', true);
};
var storageCFG = $.webshims.cfg['json-storage'];
- $.webshims.swfLocalStorage = {
+ webshims.swfLocalStorage = {
show: function(){
if(storageCFG.exceededMessage){
$('#swflocalstorageshim-wrapper').prepend('<div class="polyfill-exceeded-message">'+ storageCFG.exceededMessage +'</div>');
}
$('#swflocalstorageshim-wrapper').css({
@@ -282,25 +282,25 @@
// $.webshims.swfLocalStorage.storageEvent = function(newVal, oldVal, url){
//
// };
- $.webshims.ready('DOM swfmini', function(){
+ webshims.ready('DOM swfmini', function(){
var swfmini = window.swfmini;
if(runStart || (('localStorage' in window) && document.getElementById('swflocalstorageshim')) ){return;}
runStart = true;
if(swfmini && swfmini.hasFlashPlayerVersion('8.0.0')){
$('body').append('<div id="swflocalstorageshim-wrapper"><div id="swflocalstorageshim" /></div>');
- swfmini.embedSWF($.webshims.cfg.basePath +'swf/localStorage.swf' +($.webshims.cfg.addCacheBuster || ''), 'swflocalstorageshim', '295', '198', '8.0.0', null, {allowscriptaccess: 'always'}, {name: 'swflocalstorageshim'}, function(e){
+ swfmini.embedSWF(webshims.cfg.basePath +'swf/localStorage.swf' +(webshims.cfg.addCacheBuster || ''), 'swflocalstorageshim', '295', '198', '8.0.0', null, {allowscriptaccess: 'always'}, {name: 'swflocalstorageshim'}, function(e){
if(!e.success && !window.localStorage){
localStorageSwfCallback();
}
});
clearTimeout(swfTimer);
swfTimer = setTimeout(function(){
if(!('localStorage' in window)){
- $.webshims.warn('Add your development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html');
+ webshims.warn('Add your development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html');
}
localStorageSwfCallback();
}, (location.protocol.indexOf('file') === 0) ? 500 : 9999);
} else {
localStorageSwfCallback();