Skip to content Skip to sidebar Skip to footer
Showing posts with the label Iife

Re-invoking Iife

Why is that code block throws an error 'Uncaught ReferenceError: setSize is not defined' co… Read more Re-invoking Iife

Understanding Iife

in my page i have several img tags as follow: in the js file i've created this: function Sto … Read more Understanding Iife

How To Separate Angularjs Files Without Using Global Scope

I've seen this post AngularJS best practices for module declaration? But I am still a little co… Read more How To Separate Angularjs Files Without Using Global Scope

What Is The Functional Difference Between These Two Different Module Pattern Syntaxes

I see this syntax everywhere: var mod = (function(){ var pvtvar; var pvtfunc = function(){}; … Read more What Is The Functional Difference Between These Two Different Module Pattern Syntaxes

What Are These Patterns In This Backbone Todomvc Example

Looking into the todomvc backbone codes example. The structure in the js/ fold: ├── app.js ├── coll… Read more What Are These Patterns In This Backbone Todomvc Example

Immediately Invoked Function Expression Throws "object Is Not A Function"

I'm defining various modules in a Javascript file: var module = {/* ... */} (function(){ c… Read more Immediately Invoked Function Expression Throws "object Is Not A Function"