Sha256: 6003af06ebb454df070a34400a6844b38dcb507bce5b80e9fc74ff7d778d5fcf

Contents?: true

Size: 465 Bytes

Versions: 55

Compression:

Stored size: 465 Bytes

Contents

require 'opal'
require 'volt/models'

class Test
  def self.test1
    a = ReactiveValue.new(1)
    listener = a.on('changed') { puts "CHANGED" }
    a.cur = 5
    listener.remove
    
    ObjectTracker.process_queue
  end
  
  def self.test
    a = ReactiveValue.new(Model.new)
    a._cool = [1,2,3]
    
    listener = a._cool.on('added') { puts "ADDED" }
    a._cool << 4
    puts a._cool[3]
    
    listener.remove
    
    ObjectTracker.process_queue
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
volt-0.6.5 lib/volt/page/memory_test.rb
volt-0.6.4 lib/volt/page/memory_test.rb
volt-0.6.3 lib/volt/page/memory_test.rb
volt-0.6.2 lib/volt/page/memory_test.rb
volt-0.6.1 lib/volt/page/memory_test.rb
volt-0.6.0 lib/volt/page/memory_test.rb
volt-0.5.18 lib/volt/page/memory_test.rb
volt-0.5.17 lib/volt/page/memory_test.rb
volt-0.5.16 lib/volt/page/memory_test.rb
volt-0.5.15 lib/volt/page/memory_test.rb
volt-0.5.14 lib/volt/page/memory_test.rb
volt-0.5.13 lib/volt/page/memory_test.rb
volt-0.5.12 lib/volt/page/memory_test.rb
volt-0.5.11 lib/volt/page/memory_test.rb
volt-0.5.10 lib/volt/page/memory_test.rb
volt-0.5.9 lib/volt/page/memory_test.rb
volt-0.5.8 lib/volt/page/memory_test.rb
volt-0.5.7 lib/volt/page/memory_test.rb
volt-0.5.6 lib/volt/page/memory_test.rb
volt-0.5.4 lib/volt/page/memory_test.rb