Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request mediaelement#722 from simonschuh/patch-1
Browse files Browse the repository at this point in the history
Bugfix: attributes for PluginMediaElement
  • Loading branch information
johndyer committed Jan 23, 2013
2 parents 5184b5a + 6f6b843 commit 52f93b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/me-mediaelements.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*
extension methods to <video> or <audio> object to bring it into parity with PluginMediaElement (see below)
*/
Expand Down Expand Up @@ -63,6 +62,7 @@ mejs.PluginMediaElement = function (pluginid, pluginType, mediaUrl) {
this.pluginType = pluginType;
this.src = mediaUrl;
this.events = {};
this.attributes = {};
};

// JavaScript values and ExternalInterface methods that match HTML5 video properties methods
Expand Down Expand Up @@ -304,7 +304,6 @@ mejs.PluginMediaElement.prototype = {
// end: fake events

// fake DOM attribute methods
attributes: {},
hasAttribute: function(name){
return (name in this.attributes);
},
Expand Down

0 comments on commit 52f93b2

Please sign in to comment.