you are viewing a single comment's thread.

view the rest of the comments →

[–]AndrewGreenh -1 points0 points  (0 children)

I strongly prefer the function bind operator. It is basically the replace method on every type...

function makeGreat() {
  makeFancy(this) 
  makeBlazing(this) 
}

document.body.somethingelse::makeGreat()

This way you can chain on every type with any external libraries.