Lines Matching refs:m

86         var method = value, value = Object.extend((function(m) {  argument
87 return function() { return ancestor[m].apply(this, arguments) };
1321 var m = this.url.match(/^\s*https?:\/\/[^\/]*/);
1322 return !m || (m[0] == '#{protocol}//#{domain}#{port}'.interpolate({
2729 c = Selector.criteria, le, p, m;
2743 if (m = e.match(p)) {
2744 this.matcher.push(Object.isFunction(c[i]) ? c[i](m) :
2745 new Template(c[i]).evaluate(m));
2746 e = e.replace(m[0], '');
2759 x = Selector.xpath, le, m;
2769 if (m = e.match(ps[i])) {
2770 this.matcher.push(Object.isFunction(x[i]) ? x[i](m) :
2771 new Template(x[i]).evaluate(m));
2772 e = e.replace(m[0], '');
2792 var le, p, m;
2798 if (m = e.match(p)) {
2802 this.tokens.push([i, Object.clone(m)]);
2803 e = e.replace(m[0], '');
2841 tagName: function(m) { argument
2842 if (m[1] == '*') return '';
2843 return "[local-name()='" + m[1].toLowerCase() +
2844 "' or local-name()='" + m[1].toUpperCase() + "']";
2848 attrPresence: function(m) { argument
2849 m[1] = m[1].toLowerCase();
2850 return new Template("[@#{1}]").evaluate(m);
2852 attr: function(m) { argument
2853 m[1] = m[1].toLowerCase();
2854 m[3] = m[5] || m[6];
2855 return new Template(Selector.xpath.operators[m[2]]).evaluate(m);
2857 pseudo: function(m) { argument
2858 var h = Selector.xpath.pseudos[m[1]];
2860 if (Object.isFunction(h)) return h(m);
2861 return new Template(Selector.xpath.pseudos[m[1]]).evaluate(m);
2880 'not': function(m) { argument
2881 var e = m[6], p = Selector.patterns,
2888 if (m = e.match(p[i])) {
2889 v = Object.isFunction(x[i]) ? x[i](m) : new Template(x[i]).evaluate(m);
2891 e = e.replace(m[0], '');
2898 'nth-child': function(m) { argument
2899 return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ", m);
2901 'nth-last-child': function(m) { argument
2902 return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ", m);
2904 'nth-of-type': function(m) { argument
2905 return Selector.xpath.pseudos.nth("position() ", m);
2907 'nth-last-of-type': function(m) { argument
2908 return Selector.xpath.pseudos.nth("(last() + 1 - position()) ", m);
2910 'first-of-type': function(m) { argument
2911 m[6] = "1"; return Selector.xpath.pseudos['nth-of-type'](m);
2913 'last-of-type': function(m) { argument
2914 m[6] = "1"; return Selector.xpath.pseudos['nth-last-of-type'](m);
2916 'only-of-type': function(m) { argument
2917 var p = Selector.xpath.pseudos; return p['first-of-type'](m) + p['last-of-type'](m);
2919 nth: function(fragment, m) { argument
2920 var mm, formula = m[6], predicate;
2943 attr: function(m) { argument
2944 m[3] = (m[5] || m[6]);
2945 return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;').evaluate(m);
2947 pseudo: function(m) { argument
2948 if (m[6]) m[6] = m[6].replace(/"/g, '\\"');
2949 return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(m);
3243 var h = Selector.handlers, results = [], indexed = [], m;
3255 } else if (m = formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b
3256 if (m[1] == "-") m[1] = -1;
3257 var a = m[1] ? Number(m[1]) : 1;
3258 var b = m[2] ? Number(m[2]) : 0;
3280 var h = Selector.handlers, selectorType, m;
3320 expression.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/, function(m) { argument
3321 expressions.push(m[1].strip());
3809 var methods = Object.keys(Event.Methods).inject({ }, function(m, name) { argument
3810 m[name] = Event.Methods[name].methodize();
3811 return m;