Skip to content Skip to sidebar Skip to footer
Showing posts with the label Module Pattern

In Javascript/coffeescript How Can I Mock Out A Module's Public Variable In A Test?

I just learned about the module pattern. I've written some code that's gotten sufficiently… Read more In Javascript/coffeescript How Can I Mock Out A Module's Public Variable In A Test?

Implementing Module Pattern In Javascript With Dependency On Jquery

What is the best way to implement module pattern, while the module code depends on third party libr… Read more Implementing Module Pattern In Javascript With Dependency On Jquery

Module Pattern- How To Split The Code For One Module Into Different Js Files?

For the module pattern, I'm doing something like: (function(namespace) { // tons of code … Read more Module Pattern- How To Split The Code For One Module Into Different Js Files?