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

Manuel Quiñones manuq at laptop.org
Fri Oct 4 08:02:40 EDT 2013


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 ..


More information about the Sugar-devel mailing list