[dojo-contributors] Dojo 1.7 Goals: has() and granular dependency lists
kzyp at dojotoolkit.org
Mon Mar 14 14:59:02 EDT 2011
On 3/14/2011 12:53 PM, Rawld Gill wrote:
> On Monday 14 March 2011 09:06:31 Kris Zyp wrote:
>> On 3/11/2011 8:10 AM, Kris Zyp wrote:
>>> There are a couple of additional overarching goals that I would like
>>> to see pursued in 1.7. First, we should start using the has() pattern
>>> for feature detection branching in our code. Here is the ticket for
>>> (and explaining) this enhancement:
>> Put together a patch for dojo/_base/array.js as an example upgrade to
>> Let me know if you have any feedback before I go wild and start
>> committing this stuff ;).
> Removing the pragmas and replacing with has applications is awesome. The code
> will not only function better, but it is also less complex and reads
> I'm not convinced that on-the-fly feature test implementations are always the
> way to go, though I agree they are useful for certain cases. See my previous
> message for an alternative design. That said, this point can be debated and
> decided as we go forward...it will be quite easy to remove these and rely on a
> has module. So, I'd say, go wild. Please do dojo/_base/event.js next!!!
That's actually what I'm looking at right now (dojo/_base/event.js).
More information about the dojo-contributors