author | fturovic <frank.turovich@nokia.com> |
Tue, 07 Apr 2009 13:41:27 -0500 | |
branch | RCL_2_0 |
changeset 67 | 47ecdc260147 |
parent 2 | d760517a8095 |
permissions | -rw-r--r-- |
2 | 1 |
function Test() { |
2 |
} |
|
3 |
||
4 |
Test.prototype.getStuff = function(idx) { |
|
5 |
if (idx == 0) { |
|
6 |
return ["foo", "bar"]; |
|
7 |
} else if (idx == 1) { |
|
8 |
return [23, 45]; |
|
9 |
} else if (idx == 2) { |
|
10 |
var lst = new java.util.ArrayList(); |
|
11 |
lst.add(23); |
|
12 |
lst.add(45); |
|
13 |
return lst; |
|
14 |
} else if (idx == 3) { |
|
15 |
return "foo"; |
|
16 |
} |
|
17 |
} |
|
18 |