﻿þ.extend('METHODS', {
    hasClass: function (className, index) {
        //Take the node, split classname, lookup in resulting array
        return this.nodes[index?index:0].className.split(' ').indexOf(className) != -1
        //return new RegExp('(^|\\s)' + className + '(\\s|$)')
        //    .test(this.nodes[index ? index : 0].className);
    }
});

@@ -4,16 +4,25 @@
 extend('
+CHAINABLE
 METHODS'

use CHAINABLEMETHODS instead of METHODS for methods that return 'this'