src/node/js/node.js
function(styles, duration, easing, pushState) {
	if (!pushState) {

		var styleAttrs = [],
			defaultStyles,
			animHistory,
			i

		for (i in styles) {
			styleAttrs.push(i) 
		}
		defaultStyles = this.computeCss(styleAttrs)

		animHistory = {
			from: [defaultStyles, duration, easing, true /* This makes it so we do not push this again */],
			to: [styles, duration, easing]
		}
		
		fxObj[this.uuid()] = animHistory

		this.fire('anim:push', animHistory)
	}

	return localnwt.anim(this, styles, duration, easing);
}
function(styles, duration, easing, pushState) {
	if (!pushState) {

		var styleAttrs = [],
			defaultStyles,
			animHistory,
			i

		for (i in styles) {
			styleAttrs.push(i) 
		}
		defaultStyles = this.computeCss(styleAttrs)

		animHistory = {
			from: [defaultStyles, duration, easing, true /* This makes it so we do not push this again */],
			to: [styles, duration, easing]
		}
		
		fxObj[this.uuid()] = animHistory

		this.fire('anim:push', animHistory)
	}

	return localnwt.anim(this, styles, duration, easing);
}
function ( styles , duration , easing , pushState ) { if ( ! pushState ) { var styleAttrs = [ ] , defaultStyles , animHistory , i for ( i in styles ) { styleAttrs . push ( i ) } defaultStyles = this . computeCss ( styleAttrs ) animHistory = { from : [ defaultStyles , duration , easing , true /* This makes it so we do not push this again */ ] , to : [ styles , duration , easing ] } fxObj [ this . uuid ( ) ] = animHistory this . fire ( 'anim:push' , animHistory ) } return localnwt . anim ( this , styles , duration , easing ) ; }
Implement a node API to animate
Takes an additional argument, pushState which signals whether or not to push this anim state onto fxStack
@see NWTAnimate::anin
Implement a node API to animate Takes an additional argument pushState which signals whether or not to push this anim state onto fxStack