Sha256: e8c9c2b7dbc5a842f9724c569c7c3b497f93a92304ab7c5ef5603238b0481ada
Contents?: true
Size: 892 Bytes
Versions: 15
Compression:
Stored size: 892 Bytes
Contents
class Turbolinks.Renderer @render: (delegate, callback, args...) -> renderer = new this args... renderer.delegate = delegate renderer.render(callback) renderer renderView: (callback) -> @delegate.viewWillRender(@newBody) callback() @delegate.viewRendered(@newBody) invalidateView: -> @delegate.viewInvalidated() createScriptElement: (element) -> if element.getAttribute("data-turbolinks-eval") is "false" element else createdScriptElement = document.createElement("script") createdScriptElement.textContent = element.textContent createdScriptElement.async = false copyElementAttributes(createdScriptElement, element) createdScriptElement copyElementAttributes = (destinationElement, sourceElement) -> for {name, value} in sourceElement.attributes destinationElement.setAttribute(name, value)
Version data entries
15 entries across 14 versions & 6 rubygems