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

« back to all changes in this revision

Viewing changes to www/media/common/util.js

  • Committer: me at id
  • Date: 2009-01-15 05:53:45 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:branches%2Fstorm:1161
bin/ivle-showenrolment: Switch to ivle.database.User.enrolments from
    ivle.db.get_enrolment, removing the dependency on ivle.db.

Show diffs side-by-side

added added

removed removed

Lines of Context:
538
538
    return str.substr(str.length - substring.length) == substring;
539
539
}
540
540
 
541
 
/** Equivalent to Python's repr.
542
 
 * Gets the JavaScript string representation.
543
 
 * Actually just calls JSON.stringify.
544
 
 */
545
 
function repr(str)
546
 
{
547
 
    return JSON.stringify(str);
548
 
}
549
 
 
550
541
/** Removes all occurences of a value from an array.
551
542
 */
552
543
Array.prototype.removeall = function(val)