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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-01-19 23:29:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: grantw@unimelb.edu.au-20090119232919-4a6goyk6u1u1m58c
ivle.pulldown_subj: Use Storm, and kill ivle.db dependency. This means we use
    unicodes everywhere, so the pulldown module API has changed slightly.

ivle.pulldown_subj.dummy_subj: Return unicodes, not strs.

bin/ivle-enrolallusers: Remove ivle.db dependency, give enrol_user a store,
    and actually use the current year if one is not specified.

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)