Forum Discussion
1 Reply
- jeffrey_crowleyContributorThink of an alias as a short/friendly name to a mapped object. Say the mapped HTML element TABLE is 20 layers deep in the DOM. You can give that specific element a friendly name (alias) of 'dataTable' and the use it in code with something like:
var table = Aliases.dataTable;
instead of
var table = NameMapping.Sys.Browsers.xx.xxx.xxx.xxx.xxx.... and so on.
It's a way to simplify your code to make it more readable.