Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Explicitly Deprecate Component.extend #2390

Closed
wants to merge 5 commits into from

Conversation

misteroneill
Copy link
Member

This addresses #2383 by making sure Component.extend uses are removed from the source.

  • The Component.extend method still exists for backward compatibility.
  • Adds a deprecation warning to that method.
  • Removes a commented-out line from that method.
  • Component documentation is updated to reflect the new style (videojs.extends()).
  • Fixes a typo.

@@ -1,5 +1,6 @@
var noop = function() {}, clock, oldTextTracks;

import videojs from '../../../src/js/video.js';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

over here since we don't need all of videojs, we can import just the extendsFn itself:

import extendsFn from './extends.js';

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@gkatsev
Copy link
Member

gkatsev commented Jul 21, 2015

Small comment, LGTM otherwise.

@heff
Copy link
Member

heff commented Jul 21, 2015

I agree with @gkatsev's comment, but otherwise looks good to me.

@gkatsev
Copy link
Member

gkatsev commented Jul 21, 2015

LGTM

@heff
Copy link
Member

heff commented Jul 21, 2015

@gkatsev feel free to merge in.

@gkatsev gkatsev mentioned this pull request Jul 23, 2015
@heff heff closed this in 456ee4e Jul 24, 2015
@heff
Copy link
Member

heff commented Jul 24, 2015

Thanks @misteroneill!

@misteroneill misteroneill deleted the component-extend branch July 24, 2015 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants