KT-12877: support plain reference to declaration in UMD wrapper, support plain reference to package
This commit is contained in:
committed by
Alexey Andreev
parent
495c876b3b
commit
d63a727474
@@ -0,0 +1,29 @@
|
||||
var lib = function() {
|
||||
function A(x) {
|
||||
this.x = x;
|
||||
}
|
||||
A.prototype.foo = function (y) {
|
||||
return this.x + y;
|
||||
};
|
||||
|
||||
B = {
|
||||
x: 123,
|
||||
foo: function(y) {
|
||||
return this.x + y;
|
||||
}
|
||||
};
|
||||
|
||||
function foo(y) {
|
||||
return 323 + y;
|
||||
}
|
||||
|
||||
var bar = 423;
|
||||
|
||||
return {
|
||||
A: A,
|
||||
B: B,
|
||||
foo: foo,
|
||||
bar: bar,
|
||||
mbar: -1
|
||||
};
|
||||
}();
|
||||
Reference in New Issue
Block a user