[Sugar-devel] Web activity : adding a library (not AMD-ready).

laurent bernabe laurent.bernabe at gmail.com
Fri Oct 4 08:16:44 EDT 2013


Thanks,

so is js/loader.js the place where I must modify in order to include the
fabricjs all.require.js ?

Regards


2013/10/4 Manuel Quiñones <manuq at laptop.org>

> 2013/10/4 laurent bernabe <laurent.bernabe at gmail.com>:
> > Hello,
> > thanks for your answer.
> >
> >
> > 2013/10/4 Manuel Quiñones <manuq at laptop.org>
> >>
> >> In fabricjs README says it can be build with AMD support
> >>
> >> https://github.com/kangax/fabric.js/
> >
> >
> >
> > I think that, in my case, the best use of Fabric.js is to configure it in
> > Require.js (as in the link you gave me) rather than building it myself in
> > order to make it AMD-ready.
>
> No need to build.  They have an already built file: all.require.js in
> github
>
> Here is the call to define() that RequireJS needs:
>
> https://github.com/kangax/fabric.js/blob/master/dist/all.require.js#L19165
>
> >>
> >>
> >>
> >> And this bug is addressed:
> >>
> >> https://github.com/jrburke/requirejs/issues/729
>
> Yes, it's fixed.
>
> --
> .. manuq ..
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20131004/db2f86b3/attachment.html>


More information about the Sugar-devel mailing list