Skip to content

Commit

Permalink
Reverted an error in src() from the default args update
Browse files Browse the repository at this point in the history
  • Loading branch information
heff committed May 22, 2015
1 parent 27ee448 commit 1ff361a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,11 @@ class Player extends Component {
* @return {String} The current video source when getting
* @return {String} The player when setting
*/
src(source=this.techGet('src')) {
src(source) {
if (source === undefined) {
return this.techGet('src');
}

let currentTech = Component.getComponent(this.techName);

// case: Array of source objects to choose from and pick the best to play
Expand Down

0 comments on commit 1ff361a

Please sign in to comment.