repo.or.cz
/
T119942Repr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
build: Updating development dependencies
[T119942Repr.git]
/
modules
/
ext.boilerPlate.foo.js
blob
80813466de2024718250fd79f26d34deb75d72dc
1
( function () {
2
var x;
3
4
function iffify( y ) {
5
return y + x;
6
}
7
8
/**
9
* @class mw.boilerPlate.Foo
10
*
11
* @constructor
12
*/
13
function Foo() {
14
}
15
16
/**
17
* @static
18
* @param {string} a
19
* @param {number} b
20
* @return {boolean}
21
*/
22
Foo.create = function ( a, b ) {
23
return new Foo( iffify( a + b ) ).connect();
24
};
25
26
Foo.prototype = {
27
28
/**
29
* Establish connection to the server
30
*/
31
connect: function () {
32
}
33
};
34
35
mw.boilerPlate.Foo = Foo;
36
37
}() );