fixed children detection when not offering a $trigger
fixed test in IE
cleaned up comments
added close() awareness inside setContent