Show More
@@ -618,7 +618,8 b' define([' | |||||
618 | if (module_name) { |
|
618 | if (module_name) { | |
619 | require([module_name], function(module) { |
|
619 | require([module_name], function(module) { | |
620 | if (module[class_name] === undefined) { |
|
620 | if (module[class_name] === undefined) { | |
621 |
|
|
621 | console.error('Class '+class_name+' not found in module '+module_name) | |
|
622 | reject(); | |||
622 | } else { |
|
623 | } else { | |
623 | resolve(module[class_name]); |
|
624 | resolve(module[class_name]); | |
624 | } |
|
625 | } | |
@@ -627,7 +628,8 b' define([' | |||||
627 | if (registry && registry[class_name]) { |
|
628 | if (registry && registry[class_name]) { | |
628 | resolve(registry[class_name]); |
|
629 | resolve(registry[class_name]); | |
629 | } else { |
|
630 | } else { | |
630 |
|
|
631 | console.error('Class '+class_name+' not found in registry ', registry); | |
|
632 | reject(); | |||
631 | } |
|
633 | } | |
632 | } |
|
634 | } | |
633 | }); |
|
635 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now