Sha256: 5f2656ca13112eefbc458522b342301a4e1984f150b1efdbcc30c9e212dfea9b
Contents?: true
Size: 618 Bytes
Versions: 13
Compression:
Stored size: 618 Bytes
Contents
# # Events namespace # # Creates unified collection of bindings to a particular instance # that can be unbinded alltogether # # @see Joosy.Modules.Events # @example # namespace = Joosy.Events.Namespace(something) # # namespace.bind 'event1', -> # namespace.bind 'event2', -> # namespace.unbind() # unbinds both bindings # class Joosy.Events.Namespace # # @param [Object] @parent Any instance that can trigger events # constructor: (@parent) -> @bindings = [] bind: (args...) -> @bindings.push @parent.bind(args...) unbind: -> @parent.unbind b for b in @bindings @bindings = []
Version data entries
13 entries across 13 versions & 1 rubygems