Skip to content

Commit e31438b

Browse files
committedNov 27, 2014
Stop exposing Opal.donate - it is now a private method
1 parent e58a101 commit e31438b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎opal/corelib/runtime.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@
406406
}
407407

408408
if (klass.$$dep) {
409-
Opal.donate(klass, methods.slice(), true);
409+
donate_methods(klass, methods.slice(), true);
410410
}
411411

412412
Opal.donate_constants(module, klass);
@@ -885,7 +885,7 @@
885885
/*
886886
* Donate methods for a class/module
887887
*/
888-
Opal.donate = function(klass, defined, indirect) {
888+
function donate_methods(klass, defined, indirect) {
889889
var methods = klass.$$methods, included_in = klass.$$dep;
890890

891891
// if (!indirect) {
@@ -905,7 +905,7 @@
905905
}
906906

907907
if (includee.$$dep) {
908-
Opal.donate(includee, defined, true);
908+
donate_methods(includee, defined, true);
909909
}
910910
}
911911
}
@@ -947,7 +947,7 @@
947947
}
948948

949949
if (includee.$$dep) {
950-
Opal.donate(includee, [jsid], true);
950+
donate_methods(includee, [jsid], true);
951951
}
952952
}
953953
}
@@ -1008,7 +1008,7 @@
10081008
define_basic_object_method(jsid, body);
10091009
}
10101010
else if (obj === ObjectClass) {
1011-
Opal.donate(obj, [jsid]);
1011+
donate_methods(obj, [jsid]);
10121012
}
10131013
}
10141014
else {

0 commit comments

Comments
 (0)
Please sign in to comment.