On 2/9/07, Aragorn450 <[EMAIL PROTECTED]> wrote: > > It appears that the only reason MochiKit.Color requires MochiKit.Style > is because of the MochiKit.Color.fromComputedStyle function that has > the following statement: > > var actualColor = MochiKit.Style.getStyle.apply(d, arguments); > > Maybe it's just me, but this appears to be a huge waste. Yes, > MochiKit.Style is not that big (14 KB), but if it's only being used > for that one call, I'm sure there's other ways to do it? > > Or am I missing something else? Some other reason MochiKit.Style is > required by MochiKit.Color?
Yes, that is the only reason, but that is a common use case. If you really want to eliminate the dependency, come up with a patch that does something reasonable about it. -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?hl=en -~----------~----~----~----~------~----~------~--~---
