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

How To Avoid Manually Caching A Request That Returned An Error?

I've created a module (following Javascript's Module Pattern) that makes an http request, c… Read more How To Avoid Manually Caching A Request That Returned An Error?

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

Javascript Module Pattern Introduced In Tgp Deentityify Method - Why Is This Pattern Necessary?

Crockford introduces a pattern in the deentityify method to create a module. He claims: The modul… Read more Javascript Module Pattern Introduced In Tgp Deentityify Method - Why Is This Pattern Necessary?

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?