equal
deleted
inserted
replaced
50 var $ = function(f) { |
50 var $ = function(f) { |
51 if (typeof f === "function") { |
51 if (typeof f === "function") { |
52 f(); |
52 f(); |
53 } else { |
53 } else { |
54 return { |
54 return { |
55 val: function() { |
55 val: function() { |
56 return this; |
56 return this; |
57 }, |
57 }, |
58 prop: function() { |
58 prop: function() { |
59 return this; |
59 return this; |
60 }, |
60 }, |
61 addClass: function() { |
61 addClass: function() { |
62 return this; |
62 return this; |
63 }, |
|
64 removeClass: function() { |
|
65 return this; |
|
66 }, |
63 }, |
67 on: function() { |
64 removeClass: function() { |
68 return this; |
65 return this; |
69 }, |
66 }, |
70 focus: function() { |
67 on: function() { |
71 return this; |
68 return this; |
72 }, |
69 }, |
73 blur: function() { |
70 focus: function() { |
74 return this; |
71 return this; |
75 }, |
72 }, |
76 click: function() { |
73 blur: function() { |
77 return this; |
74 return this; |
|
75 }, |
|
76 click: function() { |
|
77 return this; |
78 }, |
78 }, |
79 catcomplete: function(o) { |
79 catcomplete: function(o) { |
80 o.close = function() {}; |
80 o.close = function() {}; |
81 search = function(term) { |
81 search = function(term) { |
82 var resultList = null; |
82 var resultList = null; |
88 } |
88 } |
89 ); |
89 ); |
90 return resultList; |
90 return resultList; |
91 }; |
91 }; |
92 for (var i = 0; i < clargs.length; i++) { |
92 for (var i = 0; i < clargs.length; i++) { |
93 search(clargs[i]); |
93 search(clargs[i]); |
94 } |
94 } |
95 }, |
95 }, |
96 "0": { |
96 "0": { |
97 setSelectionRange: function() { |
97 setSelectionRange: function() { |
98 return this; |
98 return this; |
99 } |
99 } |
100 } |
100 } |
101 } |
101 } |
102 } |
102 } |