build: Updating development dependencies
[T119942Repr.git] / modules / ext.boilerPlate.foo.js
blob80813466de2024718250fd79f26d34deb75d72dc
1 ( function () {
2         var x;
4         function iffify( y ) {
5                 return y + x;
6         }
8         /**
9          * @class mw.boilerPlate.Foo
10          *
11          * @constructor
12          */
13         function Foo() {
14         }
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         };
26         Foo.prototype = {
28                 /**
29                  * Establish connection to the server
30                  */
31                 connect: function () {
32                 }
33         };
35         mw.boilerPlate.Foo = Foo;
37 }() );