test/dummy/tmp/cache/assets/D83/C70/sprockets%2Ff536f7a68e692747fca1d2fcd5c07f57 in cytoplasm-0.3.3 vs test/dummy/tmp/cache/assets/D83/C70/sprockets%2Ff536f7a68e692747fca1d2fcd5c07f57 in cytoplasm-0.3.4

- old
+ new

@@ -1,8 +1,8 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360526639.6820102: @value"™{I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360599488.9969769: @value"±{I" class:EFI"ProcessedAsset;FI"logical_path;FI"cytoplasm/cytoTable.js;FI" pathname;FI"f/Applications/XAMPP/xamppfiles/htdocs/cytoplasm/app/assets/javascripts/cytoplasm/cytoTable.js.erb;FI"content_type;FI"application/javascript;FI" -mtime;FI"2013-02-10T15:03:59-05:00;FI" length;FiGI" digest;F"%ecc815718894f8a381e39d9039219fa1I" source;FI"G// CytoTable v0.1 +mtime;FI"2013-02-11T11:18:08-05:00;FI" length;Fi_I" digest;F"%72095f890e71ba7078d2492dad7d7c7dI" source;FI"_// CytoTable v0.1 // By MacKinley Smith (function($){ var defaults = { widget:{ table:{ @@ -68,11 +68,12 @@ } }, events:{ onCreate:function(cy){}, onChange:function(cy,event){}, - onDestroy:function(cy){} + onDestroy:function(cy){}, + onResize:function(cy){} } }; var methods = { init:function(options){ @@ -171,13 +172,23 @@ var settings = $this.data('cytoTable',settings); if (settings==null) return console.warn("You must initialize $.CytoTable before you can call the setIconClicks method!"); $.each(icons,function(icon,click){methods.setIconClick.apply($this,[icon,click]);}); }); }, - resize:function(){ + resize:function(width){ + if (width==null) width = "100%"; return this.each(function(){ + var $this = $(this); + var settings = $this.data('cytoTable'); + if (!$this.hasClass('cytoTable') || settings==null) return console.warn("You must instanciate $.cytoTable before calling the resize method!"); + var w = settings.widget.wrapper.element.css({opacity:0}); + setTimeout(function(){ + settings.events.beforeResize.apply($this,[settings]); + w.width(width).css({opacity:1}); + settings.events.onResize.apply($this,[settings]); + },1); }); }, destroy:function(){ return this.each(function(){ @@ -192,7 +203,7 @@ }; $(window).resize(function(){$('.cytoTable').cytoTable('resize');}); $.Cytoplasm("ready",function(){$('.cytoTable').cytoTable();}); })(jQuery); -;FI"dependency_digest;F"%3cd91fae895cebc62120c48554f09f68I"required_paths;F[I"f/Applications/XAMPP/xamppfiles/htdocs/cytoplasm/app/assets/javascripts/cytoplasm/cytoTable.js.erb;FI"dependency_paths;F[{I" path;FI"f/Applications/XAMPP/xamppfiles/htdocs/cytoplasm/app/assets/javascripts/cytoplasm/cytoTable.js.erb;FI" -mtime;FI"2013-02-10T15:03:59-05:00;FI" digest;F"%f2558bb0832389663c5d11475c0e460bI" _version;F"%6776f581a4329e299531e1d52aa59832 +;FI"dependency_digest;F"%096fcd7a77c806c9fa971830ef26b176I"required_paths;F[I"f/Applications/XAMPP/xamppfiles/htdocs/cytoplasm/app/assets/javascripts/cytoplasm/cytoTable.js.erb;FI"dependency_paths;F[{I" path;FI"f/Applications/XAMPP/xamppfiles/htdocs/cytoplasm/app/assets/javascripts/cytoplasm/cytoTable.js.erb;FI" +mtime;FI"2013-02-11T11:18:08-05:00;FI" digest;F"%116a04166e0e055e6cadf5d81bec8784I" _version;F"%6776f581a4329e299531e1d52aa59832 \ No newline at end of file