Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

sprucemedia/spine.watch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spine.Watch

Events for property changes.

var Model = Spine.Model.dup();
Model.configure("Model", "prop1", "prop2");

Model.bind("update[prop1]", function(record,prop,value) {
	// record: the record the property is on
	// prop: the name of the property
	// value: the new value
});

var obj = Model.create();
obj.bind("update[prop1]", function(record,prop,value) {
	// Same as previous but only fires for that record
});

About

Property events for Spine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.4%
  • CoffeeScript 1.6%