Fixed a problem with changeset [3841] where a function could no longer be .extend...