use an arg hash instead of params
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 26 Dec 2008 21:28:11 +0000 (21:28 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 26 Dec 2008 21:28:11 +0000 (21:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11683 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/GridColumnPicker.js

index 632b96e..1774a08 100644 (file)
@@ -39,11 +39,11 @@ if(!dojo._hasResource['openils.widget.GridColumnPicker']) {
              * Load the fields from the grid and map them to the MenuItem's.  
              * Load settings from server
              */
-            init : function(grid, persistPrefix, authtoken) {
+            init : function(args) {
 
-                this.grid = grid;
-                this.persistPrefix = persistPrefix
-                this.authtoken = authtoken;
+                this.grid = args.grid;
+                this.persistPrefix = args.prefix;
+                this.authtoken = args.authtoken;
                 this.cells = this.grid.structure[0].cells[0];
                 var self = this;