Commits

Shlomi Fish committed 938b983

Moved to a different generic class method.

So get_params() won't be overloaded or broken because the Latemp API relies
on it.

  • Participants
  • Parent commits 77f238c
  • Branches convert-from-jquery-treeview-to-jqtree-plugin

Comments (0)

Files changed (1)

File lib/MyNavData.pm

     },
 );
 
-sub get_params
+sub generic_get_params
 {
-    my ($args) = @_;
+    my ($class, $args) = @_;
 
     my $is_fully_expanded = (
         exists($args->{fully_expanded})
         );
 }
 
+sub get_params
+{
+    return __PACKAGE__->generic_get_params(
+        {
+            fully_expanded => 1,
+        }
+    );
+}
+
 1;