mirror of
https://github.com/videojs/video.js.git
synced 2025-01-02 06:32:07 +02:00
@misteroneill fixed tsml to be used as a tag for template strings. closes #2629
This commit is contained in:
parent
992e5e63f5
commit
ad0820cfa3
@ -145,6 +145,7 @@ CHANGELOG
|
||||
* @heff fixed timeranges deprecation warnings in tests ([view](https://github.com/videojs/video.js/pull/2627))
|
||||
* @misteroneill updated play control to use its state for icon ([view](https://github.com/videojs/video.js/pull/2636))
|
||||
* @gkatsev exposed isCrossOrigin and used it to enable CORS for textTrack XHRs ([view](https://github.com/videojs/video.js/pull/2633))
|
||||
* @misteroneill fixed tsml to be used as a tag for template strings ([view](https://github.com/videojs/video.js/pull/2629))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -41,9 +41,9 @@ export function createEl(tagName='div', properties={}, attributes={}){
|
||||
// We originally were accepting both properties and attributes in the
|
||||
// same object, but that doesn't work so well.
|
||||
if (propName.indexOf('aria-') !== -1 || propName === 'role' || propName === 'type') {
|
||||
log.warn(tsml(`Setting attributes in the second argument of createEl()
|
||||
log.warn(tsml`Setting attributes in the second argument of createEl()
|
||||
has been deprecated. Use the third argument instead.
|
||||
createEl(type, properties, attributes). Attempting to set ${propName} to ${val}.`));
|
||||
createEl(type, properties, attributes). Attempting to set ${propName} to ${val}.`);
|
||||
el.setAttribute(propName, val);
|
||||
} else {
|
||||
el[propName] = val;
|
||||
|
Loading…
Reference in New Issue
Block a user