Sha256: ed9a2f3dcdb05ca2553d94b8fe8fa1cb2503bf9cc21ee7774bb3fc3a46f33e0a
Contents?: true
Size: 665 Bytes
Versions: 36
Compression:
Stored size: 665 Bytes
Contents
require 'volt/models/persistors/base' module Volt module Persistors class Params < Base def initialize(model) @model = model end def changed(attribute_name) if RUBY_PLATFORM == 'opal' ` if (window.setTimeout && this.$run_update.bind) { if (window.paramsUpdateTimer) { clearTimeout(window.paramsUpdateTimer); } window.paramsUpdateTimer = setTimeout(this.$run_update.bind(this), 0); } ` end end def run_update if Volt.client? $page.url.update! end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems