~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/tutorial/tutorial.js

  • Committer: mattgiuca
  • Date: 2008-06-15 05:49:18 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:771
tutorial/tutorial.js: Replaced string [] indexing with charAt, for
    compatibility with Internet Explorer.
Note: This checkin is a result of me manually checking every JavaScript file
    in IVLE for instances of string indexing - and this is the only instance
    I could find. (So this problem should go away now ... please?)

Show diffs side-by-side

added added

removed removed

Lines of Context:
369
369
    if (level == 0) /* print Pass/Fail tag at outer level only */
370
370
    {
371
371
        var b = document.createElement("b");
372
 
        var text = type[0].toUpperCase() + type.substr(1) + ":";
 
372
        var text = type.charAt(0).toUpperCase() + type.substr(1) + ":";
373
373
        b.appendChild(document.createTextNode(text));
374
374
        li.appendChild(b);
375
375
    }