Sha256: 46a8aa46a33d4b20ba9cc26a3ec683ccc847b2c81feccddbc2870b1fbf720fa9
Contents?: true
Size: 711 Bytes
Versions: 2
Compression:
Stored size: 711 Bytes
Contents
class Skr.Components.Address extends Lanes.Components.Base writeTemplateName: -> 'address' constructor: (options={})-> super this.access = 'write' if @copyFrom = options.copyFrom this.bindCopyFrom() this.listenTo(this.copyFrom,'change:model', @bindCopyFrom ) bindCopyFrom: -> old = this.copyFrom.changedAttributes()['model'] this.stopListening( old, 'change', @applyChange ) if old this.listenTo(this.copyFrom.model,'change', @applyChange ) applyChange: (model,value,field)-> for name,value of model.changedAttributes() this.model.set(name,value) if this.model.get(name) == model.previous(name)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.1.8 | client/skr/components/address/Address.coffee |
stockor-0.1.7 | client/skr/components/address/Address.coffee |