Error formatting macro: pagetree: java.lang.NullPointerException

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added caveat for extend-object

...

Would expand into a number of calls to goog.bind on the object o and then return o itself. The use of the (js* "this") could possibly be replaced with the js namespaced reference js/this.

Caveat (or bug, depending on how you look at it)

Any function attached to an object via extend-object will forever thereafter refer to said object as its this.

Problem 2: ClojureScript functions and co-opted this

...