Please respect existing indentation and whitespace conventions.

Also, to avoid needing to check `_hasClassList` on every execution of `hasClass()`, this function could be defined conditionally:

```js
hasClass: _hasClassList ? function (node, className) {
    return node.classList.contains(className);
} : function (node, className) {
    var re = Y.DOM._getRegExp('(?:^|\\s+)' + className + '(?:\\s+|$)');
    return re.test(node.className);
},
```