Closed mente closed 12 years ago
any feedback?
Thanks for submitting this. I did take a look at it right away, but forgot to reply.
It looks to me like the "CommonJS/Node.js" section won't work because "factory" is expecting "ko", but will be getting something called "exports". I don't have CommonJS, Node.js, or RequireJS set up to test this, so I'm hesitant to put it in without testing.
Regarding the init/update callbacks, can you tell me why you want those in?
amd support is copy-pasted from knockout. I don't have node.js either, but in requirejs it works ok. init/update callbacks are to emulate custom binding handlers. It can be used like afterRender in template.
any chances to get merged? :)
merged.
Hello,
Copy-pasted amd support from knockout. Didn't test thorough. Also added init and update callbacks to emulate afterRender and init binding handler.
Looking forward for comments.
Regards, Alex