                 #
                 # 事件
 
-                events:
-                    $this.on Event.CLICK, Selector.TITLE, ->
-                        module.toggle $title.indexOf @
-                    $this.on Event.OPENING, (event, context) ->
-                        settings.onOpening.call context, event
-                    $this.on Event.OPEN, (event, context) ->
-                        settings.onOpen.call context, event
-                    $this.on Event.CLOSING, (event, context) ->
-                        settings.onClosing.call context, event
-                    $this.on Event.CLOSE, (event, context) ->
-                        settings.onClose.call context, event
-                    $this.on Event.CHANGE, (event, context) ->
-                        settings.onChange.call context, event
+                events: =>
 
-            # Instantiate
-            #
-            # 實例化
-
-            instantiate: =>
-                module.debug '實例化手風琴', $this
-
-                instance = module
-                $this.data ModuleNamespace, module
-
-            # Observe Changes
-            #
-            # 結構異動觀察者
-
-            observeChanges: =>
-                if not 'MutationObserver' in window
-                    return
-                observer = new MutationObserver (mutations) ->
-                    module.debug "DOM 樹狀結構已變更，更新快取資料"
-                    module.refresh()
-                observer.observe element,
-                    childList : true
-                    subtree   : true
-                module.debug "已設置 DOM 樹狀結構異動觀察者", observer
-
-            # Refresh
-            #
-            # 更新資料
-
-            refresh: =>
-                $title   = $this.find Selector.TITLE
-                $content = $this.find Selector.CONTENT
-
-            # Destroy
-            #
-            # 摧毀
-
-            destroy: ->
-                module.debug '摧毀手風琴', $this
-
-                $this.removeData ModuleNamespace
-                     .off        EventKey
-
-            # Open
-            #
-            # 展開
-
-            open: (index) ->
-                module.debug '開啟手風琴分頁', index, $this
-
-                $t = $title.eq   index
-                $c = $content.eq index
-
-                if $t.hasClass ClassName.ACTIVE
-                    return
-
-                if settings.exclusive
-                    module.debug '由於手風琴分頁同時間僅能有一個打開，因此關閉其他分頁', index, $this
-                    module.closeAll()
-
-                $this.trigger Event.OPENING, $c.get()
-                $this.trigger Event.OPEN   , $c.get()
-                $this.trigger Event.CHANGE , $c.get()
-
-                $t.addClass ClassName.ACTIVE
-                $c.addClass ClassName.ACTIVE
-
-            # Close
-            #
-            # 閉合
-
-            close: (index) ->
-                module.debug '關閉手風琴分頁', index, $this
-
-                $t = $title.eq   index
-                $c = $content.eq index
-
-                if not $t.hasClass ClassName.ACTIVE
-                    return
-
-                $this.trigger Event.CLOSING, $c.get()
-                $this.trigger Event.CLOSE  , $c.get()
-                $this.trigger Event.CHANGE , $c.get()
-
-                $t.removeClass ClassName.ACTIVE
-                $c.removeClass ClassName.ACTIVE
-
-                # 如果需要的話，一同關閉子手風琴。
-                if settings.closeNested
-                    module.debug '關閉子手風琴因應設定', index, $this
-                    ts($this.find(Selector.ACCORDION)).accordion "close all"
-
-            # Close Others
-            #
-            # 閉合指定以外
-
-            closeOthers: (index) ->
-                module.debug '關閉指定手風琴分頁以外的其他分頁', index, $this
-
-                module.closeAll()
-                module.open index
-
-            # Close All
-            #
-            # 閉合所有
-
-            closeAll: ->
-                module.debug '關閉所有手風琴分頁', $this
-                module.close i for i in [0..$this.find(Selector.TITLE).length-1]
-
-            # Toggle
-            #
-            # 切換開合
-
-            toggle: (index) ->
-                module.debug '切換手風琴分頁', index, $this
-
-                $t = $title.eq index
-
-                if $t.hasClass ClassName.ACTIVE
-                    if not settings.collapsible
-                        module.debug '手風琴不允許閉合唯一分頁，略過切換步驟', index, $this
-                        return
-                    module.close index
-                else
-                    module.open index
-
-            # Debug
-            #
-            # 除錯訊息
-
-            debug: ->
-                return if not settings.debug or settings.silent
-
-                module.debug = Function.prototype.bind.call console.info, console, "#{Name}:"
-                module.debug.apply console, arguments
-
-            # Error
-            #
-            # 錯誤訊息
-
-            error: ->
-                return if settings.silent
-
-                module.error = Function.prototype.bind.call console.error, console, "#{Name}:"
-                module.error.apply console, arguments
-
-            # Invoke
-            #
-            # 模組呼叫點
-
-            invoke: (query, passedArguments, context) =>
-                if methodInvoked
-                    if instance is undefined
-                        module.initialize()
-                    module.invoke Data.QUERY
-                else
-                    if instance isnt undefined
-                        instance.invoke 'destroy'
-                    module.initialize()
-
-                switch Data.query
-
-                    # Open
-                    #
-                    # 開啟指定索引的手風琴內容。
-
-                    when 'open'
-                        module.open Data.QUERY_ARGUMENTS[0]
-
-                    # Close
-                    #
-                    # 關閉指定索引的手風琴內容。
-
-                    when 'close'
-                        module.close Data.QUERY_ARGUMENTS[0]
-
-                    # Close Others
-                    #
-                    # 關閉指定索引手風琴以外的其他索引。
-
-                    when 'close others'
-                        module.closeOthers Data.QUERY_ARGUMENTS[0]
-
-                    # Close All
-                    #
-                    # 關閉所有手風琴的頁籤。
-
-                    when 'close all'
-                        module.closeAll()
-
-                    # Toggle
-                    #
-                    # 切換指定索引的手風琴內容，如果是開啟的則關閉，相反之。
-
-                    when 'toggle'
-                        module.toggle Data.QUERY_ARGUMENTS[0]
-
-        settings = $this.data(SettingKey)
-
-        module.initialize()
-        module.invoke()
-
-    return if Data.VALUE isnt undefined then Data.VALUE else @
-
-
-
-
+        # ------------------------------------------------------------------------
+        # Tocas 核心安插
+        # ------------------------------------------------------------------------

    # 事件名稱。
    Event =
        OPENING: "opening#{EventKey}"
        OPEN   : "open#{EventKey}"
        CLOSING: "closing#{EventKey}"
        CLOSE  : "close#{EventKey}"
        CHANGE : "change#{EventKey}"
        CLICK  : "click#{EventKey}"

    # 樣式名稱。
    ClassName =

        ACTIVE_CONTENT: '.active.content'
        ACTIVE        : '.active'

    ts(@).each ->

        # ------------------------------------------------------------------------
        # 模組定義
        # ------------------------------------------------------------------------

        module =

            # Initialize
