Instead of saving authName in the mkws structure, publish it to the
[mkws-moved-to-github.git] / src / mkws-widgets.js
index b29538e..b286705 100644 (file)
@@ -289,7 +289,7 @@ function promoteToSort() {
 mkws.registerWidgetType('Sort', promoteToSort);
 
 
-function promoteToPerpage() {
+mkws.registerWidgetType('Perpage', function() {
     var that = this;
 
     $(this.node).change(function() {
@@ -300,5 +300,4 @@ function promoteToPerpage() {
        }
        return false;
     });
-}
-mkws.registerWidgetType('Perpage', promoteToPerpage);
+});