File tree 4 files changed +24
-6
lines changed
4 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ module.exports = function (grunt) {
195
195
jsdoc : {
196
196
dist : {
197
197
options : {
198
- destination : 'docs/jsdocs ' ,
198
+ destination : 'dist/jsdoc ' ,
199
199
configure : 'build/jsdoc/jsdoc_conf.json'
200
200
}
201
201
}
Original file line number Diff line number Diff line change 3
3
"allowUnknownTags" : true
4
4
},
5
5
"source" : {
6
- "include" : [" ./src/" ]
6
+ "include" : [" ./src/" , " README.md " ]
7
7
},
8
8
"plugins" : [ " plugins/markdown" ],
9
9
"templates" : {
Original file line number Diff line number Diff line change 27
27
"grunt-exorcise" : " ^2.1.0" ,
28
28
"grunt-githooks" : " ^0.5.0" ,
29
29
"grunt-jscs" : " ^2.5.0" ,
30
- "grunt-jsdoc" : " ^0.5.8" ,
31
- "grunt-mocha-istanbul" : " ^3.0.1" ,
30
+ "grunt-jsdoc" : " ^0.6.0" ,
32
31
"ink-docstrap" : " ^1.1.0" ,
32
+ "jsdoc" : " ^3.4.0" ,
33
+ "grunt-mocha-istanbul" : " ^3.0.1" ,
33
34
"iron-mocha" : " ^1.0.3" ,
34
35
"istanbul" : " ^0.4.1" ,
35
- "jsdoc" : " ^3.4.0" ,
36
36
"load-grunt-tasks" : " ^3.1.0" ,
37
37
"mocha" : " ^2.3.4" ,
38
38
"sinon" : " ^1.17.2" ,
Original file line number Diff line number Diff line change 29
29
* POSSIBILITY OF SUCH DAMAGE.
30
30
*/
31
31
/**
32
- * @ignore
32
+ * @Module FactoryMaker
33
33
*/
34
34
let FactoryMaker = ( function ( ) {
35
35
@@ -44,6 +44,18 @@ let FactoryMaker = (function () {
44
44
}
45
45
}
46
46
47
+ /**
48
+ * Use this method from your extended object. this.factory is injected into your object.
49
+ * this.factory.getSingletonInstance(this.context, 'VideoModel')
50
+ * will return the video model for use in the extended object.
51
+ *
52
+ * @param context {Object} injected into extended object as this.context
53
+ * @param className {String} string name found in all dash.js objects with
54
+ * name __dashjs_factory_name Will be at the bottom. Will be the same as the object's name.
55
+ * @returns {* } Context aware instance of specified singleton name.
56
+ * @memberof module:FactoryMaker#getSingletonInstance
57
+ * @instance
58
+ */
47
59
function getSingletonInstance ( context , className ) {
48
60
for ( let i in singletonContexts ) {
49
61
let obj = singletonContexts [ i ] ;
@@ -54,6 +66,12 @@ let FactoryMaker = (function () {
54
66
return null ;
55
67
}
56
68
69
+ /**
70
+ *
71
+ * @param context
72
+ * @param className
73
+ * @param instance
74
+ */
57
75
function setSingletonInstance ( context , className , instance ) {
58
76
for ( let i in singletonContexts ) {
59
77
let obj = singletonContexts [ i ] ;
You can’t perform that action at this time.
0 commit comments