I have a situation where the insert .after is repeating when the window is resized. I only want the insert .after to fire immediately one time when it's resized -- not repeatedly. What's a good solution to solve this problem?

```
if ($(options.accord) .length > 0) {
  if ($(window).width() < 470) {
    $tabs.addClass('example').after('enter tags here');
  }
  $(window).resize(function () {
    if ($(window) .width() < 470) {
      $tabs.addClass('example').after('enter tags here');
    }
  });
}

```