Dependencies not working
nachitox opened this issue · 0 comments
nachitox commented
Hi,
I'm having problems with the library.
On https://www.sitejabber.com/reviews/www.sitejabber.com we have:
<script type="text/javascript">
$script.ready('jquery', function() {
$script('https://static3.sitejabber.com/js/fileuploader.min.1476819401.js', 'fileUploader');
});
$script.ready('fileUploader', function() {
$script('https://static3.sitejabber.com/js/upload.min.1476819401.js', 'uploadHelper');
});
</script>
But this error shows up:
ReferenceError: qq is not defined
qq is defined in fileuploader.js and use by upload.js
Shouldn't the library avoid this issues ?
EDIT:
Tried with with $script.order
but the problem persist!
$script.ready('jquery', function() {
$script.order(['https://static3.sitejabber.com/js/fileuploader.min.1476819401.js', 'https://static3.sitejabber.com/js/upload.min.1476819401.js'], 'uploadHelper');
});