appcelerator/alloy — pull request #186 by FokkeZB (2013-07-18 07:08:22+00:00)
Title: Use nodeName in createFunc when using module-attribute without the module nodeName

* Fixes the compiler not using the `Alloy.Module.js` parser at all because a ``'s fullname is `Ti.UI.Module` and not `Alloy.Module`. Of course we could add `NS_ALLOY` as the implicit namespace for `Module` in `constants.js`, but then it would trigger the `eventFunc` to be `on` instead of `addEventListener`. Instead, I just renamed the parser to `Alloy.Module.js`.

* The above bug didn't affect how `` was processed because in the `default.js` parser when a `module` attribute existed, the `createFunc` was no longer based on the `nodeName` but hard-coded to `createView` unless a `method` attribute existed. Now `Ti.UI.Module.js` *is* properly parsed and the `nodeName` for ``'s is changed to `View`, we can now fall back on the default `create` + `nodeName`.

* As a result of these 2 changes, you can now also use the `module` attribute with a different - custom - `nodeName`. You can still use the `method` attribute, but if you don't it will now be `create` + `nodeName`.

See the discussion on ALOY-743.