Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Is there any way to use the Fine Uploader with require.js (AMD)? #1207

Closed
hyzhak opened this issue May 14, 2014 · 2 comments
Closed

Is there any way to use the Fine Uploader with require.js (AMD)? #1207

hyzhak opened this issue May 14, 2014 · 2 comments

Comments

@hyzhak
Copy link

hyzhak commented May 14, 2014

If you try something like that

requirejs.config({
    paths: {
        "jquery": "//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min",
        'fineuploader': '//widen.github.io/fine-uploader/source/all.fineuploader-4.4.0.min'
    },
    shim: {        
        'fineuploader': {
            deps: ['jquery'],
            exports: 'qq'
        }
    }
});

requirejs([
    'fineuploader'
], function(qq) {
    console.log(qq);
});

qq will equal to MegaPixImage but not qq. How to solve this issue and get qq from fineuploader by requirejs?

@rnicholus
Copy link
Member

Not everything is namespaced, such as MegaPixImage, and some other optional dependencies. All non-third-party components are namespaced under qq though.

@rnicholus
Copy link
Member

Duplicate of #789.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants