diff options
| author | aarne <aarne@chalmers.se> | 2010-05-29 09:18:20 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2010-05-29 09:18:20 +0000 |
| commit | 510a4044675fdc6540e4a74aee656f25bdde9319 (patch) | |
| tree | dea66f32061bf23e7422576a32bc98cd730aaaca /examples/phrasebook/www | |
| parent | deacb0219575d8e8ae8e6f0fdfb379bfe05aceb0 (diff) | |
more accurate treatment of negative "have" clauses in Phrasebook
Diffstat (limited to 'examples/phrasebook/www')
| -rw-r--r-- | examples/phrasebook/www/support.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/phrasebook/www/support.js b/examples/phrasebook/www/support.js index e2240624c..b322aae86 100644 --- a/examples/phrasebook/www/support.js +++ b/examples/phrasebook/www/support.js @@ -38,6 +38,7 @@ function empty_id(tag,id) { return empty(tag,"id",id); } function empty_class(tag,cls) { return empty(tag,"class",cls); } function div_id(id) { return empty_id("div",id); } +function span_id(id) { return empty_id("span",id); } function wrap(tag,contents) { var el=empty(tag); @@ -119,7 +120,7 @@ function swap(a,i,j) { // Note: this doesn't work on strings. function sort(a) { // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/sort - return a.sort; + return a.sort(); /* // Note: this doesn't work on strings. for(var i=0;i<a.length-1;i++) { var min=i; |
