You need to update the attributes that you're checking here. The purpose of the refresh() method is to figure out if this widget node needs refreshing, so we check to see if any of the attributes we're depending on have changed.