Changes between Initial Version and Version 3 of Ticket #12431


Ignore:
Timestamp:
Mar 15, 2011, 5:36:46 AM (9 years ago)
Author:
bill
Comment:

I know this is your preference for how to do has() testing, but it's not something we concluded on, see the dojo-contributors thread. Rawld and I responded to your post but you just never answered.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12431 – Description

    initial v3  
    55The primary usage pattern should look like:
    66
     7{{{
    78  define([...], function(...){
    89    var features = {
     
    1819    }
    1920  });
     21}}}
    2022
    2123Note, I would like to see us avoid having a separate "has" module if possible. While the source code for using a "has" module (with has.add function) might look shorter, it actually does not compress as well as the code above. Putting tests in separate modules also adds unnecessary complexity to our modules, keeping tests within the module that uses it makes our code much easier to read without having to look in separate modules for understanding implementation.