未捕获的ReferenceError:未在js中定义Gallery

时间:2013-02-07 23:11:57

标签: javascript jquery css jquery-ui javascript-events

我正在使用立方体库来显示多维数据集.... 我有一个错误.... 未捕获的ReferenceError:未定义图库fiddle.jshell.net:722

如何修复错误..... \

我的小提琴也在下面

http://jsfiddle.net/N3GTy/12/

在下面提供我的代码

<script type="text/javascript">
            /*
            |------------------------------------------|
            | MelonHTML5 - 3D Cube Gallery             |
            |------------------------------------------|
            | @author:  Lee Le (lee@melonhtml5.com)    |
            | @version: 1.02 (09 Jan 2013)             |
            | @website: www.melonhtml5.com             |
            |------------------------------------------|
            */
            Gallery = {
                _config: {
                    speed: 500,
                    size: 100,
                    lightbox: !0,
                    closeOnEsc: !0,
                    animation: "default",
                    slideshow: !1,
                    slideshow_speed: 3E3,
                    cube_speed: 1E3
                },
                lightbox_speed: 300,
                window_width: null,
                window_height: null,
                _cube_timeout: null,
                _gallery: null,
                _overlay: null,
                _lightbox: null,
                _current: null,
                _in_slideshow: !1,
                init: function() {
                    Gallery._buildContainer(!0, !0);
                    Gallery.window_width = $(window).width();
                    Gallery.window_height = $(window).height();
                    $(document).keydown(Gallery.Events.keyDown);
                    $(window).resize(Gallery.Events.windowResize);
                    Gallery._startCube()
                },

1 个答案:

答案 0 :(得分:0)

Gallery.setOptions({...})被定义之前,您正在呼叫Gallery