jamesallardice/patchwork.js

Stackoverflow on multiple patches

Opened this issue · 0 comments

Hello,

Nice code done. Thanks!

I found a problem if a make a double monkey patch. The DateOriginal (as in the example) won't work and its constructor will return a 'stack overflow'.

I remembered alias_method_chain from Rails, that allows multiple monkeys patches in a chain style. Could this be implemented? Or maybe a simple protection against double monkey patching?

cheers