16 lines
514 B
JavaScript
16 lines
514 B
JavaScript
// Generated by CoffeeScript 1.12.5
|
|
import Ember from 'ember';
|
|
|
|
import config from 'ember-get-config';
|
|
|
|
export default Ember.Component.extend({
|
|
tagName: 'img',
|
|
init: function() {
|
|
var src;
|
|
src = config.environment === 'development' || config.environment === 'test' ? config.rootURL + "ember-panda/assets/" + (this.get('path')) : config.rootURL + "assets/" + (this.get('path'));
|
|
this.set('full_src', src);
|
|
return this._super.apply(this, arguments);
|
|
},
|
|
attributeBindings: ['full_src:src']
|
|
});
|