On Jun 23, 2006, at 12:48 PM, Beau Hartshorne wrote:
>
> On 23-Jun-06, at 12:37 PM, Chris Nokleberg wrote:
>
>> mouse() uses Style.Coordinates, but Style is not listed as a
>> dependency.
>>
>> Also, is there an easy way to prevent any importing? From what I can
>> see in the code it is only disabled if you are using dojo or JSAN.
>> Running this code before loading MochiKit works but it is ugly:
>>
>> <script type="text/javascript">
>> dojo = { provide : function() { }, require : function() { } };
>> </script>
>>
>> I would love a way to selectively import certain functions from
>> certain
>> modules using MochiKit alone.
>
> Thanks for the catch:
> http://trac.mochikit.com/changeset/1041
>
> By the way, any reason we're using:
> try {
> if (typeof(MochiKit.Base) == 'undefined') {
> throw '';
> }
> } catch (e) {
> throw 'MochiKit.Style depends on MochiKit.Base!';
> }
>
> Instead of something like:
> if (typeof(MochiKit.Base) == 'undefined') {
> throw 'MochiKit.Style depends on MochiKit.Base!';
> }
If the MochiKit object doesn't exist, typeof(MochiKit.Base) will
throw a NameError.
-bob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---