Lines Matching refs:modes
62 * @param {Array.<string>} modes The modes to check for.
63 * @return {boolean} True if any mode in |modes| is found within the attribute.
65 remoting.hasModeAttribute = function(element, attrName, modes) {
67 for (var i = 0; i < modes.length; ++i) {
68 if (attr.match(new RegExp('(\\s|^)' + modes[i] + '(\\s|$)')) != null) {
83 var modes = mode.split('.');
84 for (var i = 1; i < modes.length; ++i)
85 modes[i] = modes[i - 1] + '.' + modes[i];
91 if (!remoting.hasModeAttribute(element, attr, modes)) {
97 if (remoting.hasModeAttribute(element, attr, modes)) {