code: function build_ext_define_patterns(namespaces) {
    var mappedNamespaced = _.map(namespaces, function(ns) {
      [ns + ".define", ns + ".ClassManager.create"]
    });
    return _.flatten(mappedNamespaced);
  }
docs: Given Array of alternate Ext namespaces builds list of patterns for detecting Ext.define:  ["Ext","Foo"] --> ["Ext.define", "Ext.ClassManager.create", "Foo.define", "Foo.ClassManager.create"]