lib/netzke/basepack/wrap_lazy_loaded.rb in netzke-basepack-0.6.5 vs lib/netzke/basepack/wrap_lazy_loaded.rb in netzke-basepack-0.7.0
- old
+ new
@@ -6,10 +6,10 @@
# a tab.
module WrapLazyLoaded
def items
orig = super.dup
orig.each do |item|
- wrapped_component = components[item[:component]]
+ wrapped_component = components[item[:netzke_component]]
# When a nested component with lazy loading is detected, it gets replaced with a 'fit' panel,
# into which later the component itself is dynamically loaded on request.
if wrapped_component && wrapped_component[:lazy_loading]
item.replace({
:layout => 'fit',
\ No newline at end of file