import Ember from 'ember';

export default function(helper) {
  if (Ember.Helper && Ember.Helper.detect(helper)) {
    return helper;
  }

  return Ember.HTMLBars.makeBoundHelper(helper);
}

import Ember from 'ember';

export default function(helper) {
  if (Ember.Helper) {
    if (Ember.Helper.detect(helper)) {
      return helper;
    }
    else {
      return Ember.Helper.helper(helper);
    }
  }

  return Ember.HTMLBars.makeBoundHelper(helper);
}

Fix deprecation warnings in Ember 1.13.6