Created
March 19, 2016 21:38
-
-
Save selbyk/7cfbf432e97f2c2154c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: 'audio', | |
attributeBindings: ['src', 'preload'], | |
src: Ember.computed.alias('url'), | |
preload: 'none', | |
didInsertElement() { | |
let _this = this; | |
audiojs.events.ready(function() { | |
_this.set('as', audiojs.create(_this.get('element'))); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment