Skip to content

Commit b999afa

Browse files
committedJun 17, 2014
Autoload should try to get constant again after requiring dependency
1 parent c730abc commit b999afa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

Diff for: ‎opal/corelib/module.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ def const_missing(const)
250250
var autoloader;
251251
252252
if (self.__autoload && (autoloader = self.__autoload[#{const}])) {
253-
return self.$require(autoloader);
253+
self.$require(autoloader);
254+
return self._scope.get(#{const});
254255
}
255256
}
256257

0 commit comments

Comments
 (0)
Please sign in to comment.