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