             o.el.on "decompress.#{ pluginName }", (e) ->
                 current = $ this
 
-                current.data stateKey, 'decompressed'
+                current.data o.stateKey, 'decompressed'
 
                 holder = current.find ".#{ o.opts.holder.class }"
 

                .removeClass(o.opts.wrappedClass)
                .trigger "decompress.#{ pluginName }"

        _this.getState = ->
            state = o.el.data stateKey

            return if typeof state is "undefined" then 'decompressed' else state



                o.opts.onAfterDecompress(_this) if $.isFunction(o.opts.onAfterDecompress)

            o.browserWindow.on o.resizeKey, o.resize

            # execute custom code after the plugin has loaded
            o.opts.onAfterLoad(_this) if $.isFunction(o.opts.onAfterLoad)

            # trigger the resize event after the plugin has loaded
            o.browserWindow.trigger o.resizeKey

        o.resize = (e) ->
            current      = $ this
