jhuni
2009-03-20 21:28:35 UTC
Hi I have been using MochiKit for some large projects as I have found
it to be the most well design library, however I come up with some
objections. MochiKit.Color depends on MochiKit.Style! I will be using
Canvas in many of my applications and I do not want them to have to
load MochiKit.Style and MochiKit.DOM. I might not even want to use
MochiKit.Style and MochiKit.DOM at all. This has already been realized
by other members:
http://groups.google.com/group/mochikit/browse_thread/thread/6438570630c8b5bb/d49abef329df9f1a?lnk=gst&q=MochiKit.Color#d49abef329df9f1a
Solution:
1. Move the following from MochiKit.Color to MochiKit.Style
MochiKit.Base.update(MochiKit.Color.Color, {
fromBackground: ...
fromComputedStyle
});
We can leave that in MochiKit.Style for a while for backwards
compatability. This way all old MochiKit applications will still work.
2. Make the following standard inteface for these functions:
MochiKit.Style.getBackgroundColor and
MochiKit.Style.getColorFromStyle. Eventually we might completely
remove Color.fromBackground and Color.fromComputedStyle
Any objections?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to mochikit+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---
it to be the most well design library, however I come up with some
objections. MochiKit.Color depends on MochiKit.Style! I will be using
Canvas in many of my applications and I do not want them to have to
load MochiKit.Style and MochiKit.DOM. I might not even want to use
MochiKit.Style and MochiKit.DOM at all. This has already been realized
by other members:
http://groups.google.com/group/mochikit/browse_thread/thread/6438570630c8b5bb/d49abef329df9f1a?lnk=gst&q=MochiKit.Color#d49abef329df9f1a
Solution:
1. Move the following from MochiKit.Color to MochiKit.Style
MochiKit.Base.update(MochiKit.Color.Color, {
fromBackground: ...
fromComputedStyle
});
We can leave that in MochiKit.Style for a while for backwards
compatability. This way all old MochiKit applications will still work.
2. Make the following standard inteface for these functions:
MochiKit.Style.getBackgroundColor and
MochiKit.Style.getColorFromStyle. Eventually we might completely
remove Color.fromBackground and Color.fromComputedStyle
Any objections?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to mochikit+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---