app/assets/javascripts/cytoplasm/cytoplasm.js.erb in cytoplasm-0.1.8 vs app/assets/javascripts/cytoplasm/cytoplasm.js.erb in cytoplasm-0.1.9
- old
+ new
@@ -308,23 +308,9 @@
},
ready:function(func){
if (typeof func != "function") return console.warn("$.Cytoplasm's ready method requires a function to be passed as its first and only argument.");
if (ready==true) return func.apply();
else readyFunctions.push(func);
-
- /*
-
- var interval = setInterval(function(){
- if (ready==true) {
- clearInterval(interval);
- var allexceptheader = $('body').children(':not(header)').animate({opacity:1},250,function(){
- $('body').css('overflow-y','scroll');
- $(window).bind('beforeunload',function(){allexceptheader.animate({opacity:0},100);});
- func.apply();
- });
- }
- },10);
- */
}
};
$.Cytoplasm = function(method){
if (methods[method]) return methods[method].apply(this,Array.prototype.slice.call(arguments,1));
\ No newline at end of file