Sha256: d91c18fb3eefea1f8444f1c1196cef2b76c1ef610cfafc56771066b3ea156cbb
Contents?: true
Size: 518 Bytes
Versions: 3
Compression:
Stored size: 518 Bytes
Contents
pageLoad = -> actionClassName = $('body').data('action-view') window.currentView = try eval("new #{actionClassName}()") catch error controllerClassName = $('body').data('controller-view') window.currentView = try eval("new #{controllerClassName}()") catch error new MagicView() window.currentView.render() $ -> pageLoad() $(document).on 'turbolinks:before-render', -> window.currentView.cleanup() true $(document).on 'turbolinks:render', -> pageLoad() true
Version data entries
3 entries across 3 versions & 1 rubygems