Sha256: 07f6100e9337a99a75b706b9b32466b989cdf5ef5a41bf661db2486207baa9c3
Contents?: true
Size: 607 Bytes
Versions: 24
Compression:
Stored size: 607 Bytes
Contents
require 'volt/models/persistors/base' module Volt module Persistors class Params < Base 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 true end def run_update Volt.current_app.url.update! if Volt.client? end end end end
Version data entries
24 entries across 24 versions & 1 rubygems