/[freeride]/freeride/freebase/databus.rb
ViewVC logotype

Diff of /freeride/freebase/databus.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by richkilmer, Mon Feb 11 02:35:59 2002 UTC revision 1.4 by curthibbs, Mon May 27 08:46:13 2002 UTC
# Line 402  module FreeBASE Line 402  module FreeBASE
402        def notify(event, slot = self)        def notify(event, slot = self)
403          if @subscribers.size > 0          if @subscribers.size > 0
404            @subscribers.each_value do |subscriber|            @subscribers.each_value do |subscriber|
405    #puts "#{@subscribers.size}:::: notify #{self.path} subscriber #{subscriber} \n            of #{event} at #{slot.path}" if self.path.include?("menupane")
406              if subscriber.kind_of? Proc              if subscriber.kind_of? Proc
407                subscriber.call(event, slot)                subscriber.call(event, slot)
408              else              else
# Line 442  module FreeBASE Line 443  module FreeBASE
443          else          else
444            count = @databus.idCount            count = @databus.idCount
445            @subscribers[count] = Proc.new(&block)            @subscribers[count] = Proc.new(&block)
446    #puts "#{@subscribers.size}:::: new subscriber #{@subscribers[count]} at  #{self.path}" if self.path.include?("menupane")
447            return count            return count
448          end          end
449        end        end

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26