dwyl/sort

What's with all the 'this's?!?

Closed this issue · 1 comments

rjmk commented

Riot organises itself through objects.

Look at this (and this):

this.leadZero = function (number) {
  return (number < 10) ? '0'+number : number;
};

 this.getTime = function (timestamp) {
  var t, h, m, s, time;
  t = new Date(timestamp);
  h = this.leadZero(t.getHours());
  m = this.leadZero(t.getMinutes());
  s = this.leadZero(t.getSeconds());
  return '' + h  + ':' + m + ':' + s;
};

Not to mention iterators! Can we add an explanation about that?

rjmk commented

This is issue is being automatically closed as it's more than a year old. Please feel free to reopen it if it's still relevant to your project.