Issue #3074953 by nrackleff, ndrake86: link-widget.js should not pass the whole document to Drupal.attachBehaviors()