How to use the liquid-fire.initialize function in liquid-fire

To help you get started, we’ve selected a few liquid-fire examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-animation / ember-animated / tests / helpers / fire-helpers.js View on Github external
return function() {
    var a;
    initialize(this.container);
    if (typeof(attrs) === 'function') {
      a = attrs.apply(this);
    } else {
      a = Ember.copy(attrs, true);
    }
    if (a.template) {
      a.template = compileTemplate(a.template);
    }
    a.container = this.container;
    if (a.context && !((a.context instanceof Ember.Object) || (Ember.isArray(a.context)))) {
      a.context = Ember.Object.create(a.context);
    }
    if (a.setup) {
      a.setup.apply(this, [a]);
      delete a.setup;
    }