]> www.average.org Git - mkgallery.git/blobdiff - include/multibox.js
attempt to migrate to moo 1.2
[mkgallery.git] / include / multibox.js
index a96672d5c58a634d3863fa0031a8c8576659a3e9..fd2803bd4c607ec5951973e495af8f6c9b75d8ea 100644 (file)
@@ -31,8 +31,8 @@ var MultiBox = new Class({
                        offset: {x:0, y:0},\r
                        fixedTop: false,\r
                        path: 'files/',\r
-                       onOpen: Class.empty,\r
-                       onClose: Class.empty,\r
+                       onOpen: $empty,\r
+                       onClose: $empty,\r
                        openFromLink: true,\r
                        relativeToWindow: true\r
                };\r
@@ -119,8 +119,8 @@ var MultiBox = new Class({
                        }\r
                }, this);\r
                \r
-               this.containerEffects = new Fx.Styles(this.container, {duration: 400, transition: Fx.Transitions.sineInOut});\r
-               this.controlEffects = new Fx.Styles(this.controlsContainer, {duration: 300, transition: Fx.Transitions.sineInOut});\r
+               this.containerEffects = new Fx.Morph(this.container, {duration: 400, transition: Fx.Transitions.sineInOut});\r
+               this.controlEffects = new Fx.Morph(this.controlsContainer, {duration: 300, transition: Fx.Transitions.sineInOut});\r
                \r
                this.reset();\r
        },\r
@@ -453,7 +453,7 @@ var MultiBox = new Class({
                        }\r
                }\r
                \r
-               this.contentEffects = new Fx.Styles(this.contentContainer, {duration: 500, transition: Fx.Transitions.linear});\r
+               this.contentEffects = new Fx.Morph(this.contentContainer, {duration: 500, transition: Fx.Transitions.linear});\r
                this.contentEffects.start({\r
                        opacity: 1\r
                });\r