Skip to content

Commit 18be230

Browse files
author
Richard Nguyen
committed
Curl does not support map config, so fork persistvolume
1 parent ec776ce commit 18be230

File tree

3 files changed

+17
-25
lines changed

3 files changed

+17
-25
lines changed

Diff for: grunt-configs/requirejs.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,7 @@ module.exports = function(grunt, options) {
223223
'inlineSvg'
224224
],
225225
generateSourceMaps: true,
226-
preserveLicenseComments: false,
227-
map:{
228-
'*':{
229-
'video':'videojs'
230-
}
231-
}
226+
preserveLicenseComments: false
232227
}
233228
},
234229
videoEmbed : {

Diff for: static/src/javascripts/bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"video.js": "5.0.0",
2121
"videojs-playlist-audio": "guardian/videojs-playlist#v0.1.0",
2222
"videojs-contrib-ads": "guardian/videojs-contrib-ads#v3.0.0",
23-
"videojs-persistvolume": "0.1.2",
23+
"videojs-persistvolume": "guardian/videojs-persistvolume#0.1.3",
2424
"videojs-embed": "0.3.3",
2525
"videojs-ima": "guardian/videojs-ima#0.2.1"
2626
},

Diff for: static/src/javascripts/components/videojs-persistvolume/videojs.persistvolume.js

+15-18
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
"use strict";
2-
(function(factory){
3-
/*!
4-
* Custom Universal Module Definition (UMD)
5-
*
6-
* Video.js will never be a non-browser lib so we can simplify UMD a bunch and
7-
* still support requirejs and browserify. This also needs to be closure
8-
* compiler compatible, so string keys are used.
9-
*/
10-
if (typeof define === 'function' && define['amd']) {
11-
define(['./video'], function(vjs){ factory(window, document, vjs) });
12-
// checking that module is an object too because of umdjs/umd#35
13-
} else if (typeof exports === 'object' && typeof module === 'object') {
14-
factory(window, document, require('video.js'));
1+
2+
(function (root, factory) {
3+
if (typeof define === 'function' && define.amd) {
4+
// AMD. Register as an anonymous module unless amdModuleId is set
5+
define('videojs-persistvolume', ["videojs"], function (a0) {
6+
return (factory(window, document, a0));
7+
});
8+
} else if (typeof exports === 'object') {
9+
// Node. Does not work with strict CommonJS, but
10+
// only CommonJS-like environments that support module.exports,
11+
// like Node.
12+
module.exports = factory(window, document, require("video.js"));
1513
} else {
16-
factory(window, document, videojs);
14+
root['videojs-persistvolume'] = factory(window, document, videojs);
1715
}
18-
19-
})(function(window, document, vjs) {
16+
}(this, function(window, document, vjs) {
2017
//cookie functions from https://developer.mozilla.org/en-US/docs/DOM/document.cookie
2118
var
2219
getCookieItem = function(sKey) {
@@ -120,4 +117,4 @@
120117

121118
vjs.plugin("persistvolume", volumePersister);
122119

123-
});
120+
}));

0 commit comments

Comments
 (0)