Changed .pending to .undefined in javascript

Need to clarify if .pending is equivalent to .undefined or if they are both used.