Index: trunk/extensions/ApiSandbox/ext.apiSandbox.js |
— | — | @@ -421,6 +421,12 @@ |
422 | 422 | $examplesContainer.hide(); // just in case |
423 | 423 | return; |
424 | 424 | } |
| 425 | + // on 1.18, convert everything into 1.19 format |
| 426 | + if ( info.allexamples.length > 0 && typeof info.allexamples[0] == 'string' ) { |
| 427 | + for ( var i = 0; i < info.allexamples.length; i++ ) { |
| 428 | + info.allexamples[i] = { '*': info.allexamples[i] }; |
| 429 | + } |
| 430 | + } |
425 | 431 | $examplesContent.hide() |
426 | 432 | .html( '' ); |
427 | 433 | var $list = $( '<ul></ul>' ); |