What are we trying to observe? Raw object data.
// Objects
var obj = { id: 2 };
obj.id = 3; // obj == { id: 3 }
 
// Arrays
var arr = ['foo', 'bar'];
arr.splice(1, 1, 'baz'); // arr == ['foo', 'baz'];
| /** | |
| * parse given query string url, and return it as | |
| * object literal with proper type casting for primitives | |
| * | |
| * @param {string} url | |
| * @return {object} queryString | |
| * | |
| * notes: | |
| * - requires jQuery for linear typecasting | |
| * - parameter names are all lowercased | 
| /*! Js Pub/Sub | |
| * http://anasnakawa.com/ | |
| * Copyright (c) Anas Nakawa | |
| * inspired by Ben Alman's one <https://gist.github.com/cowboy/661855> | |
| * MIT License | |
| */ | |
| (function( p ) { | |
| var e = p.e = {}; | 
| // Tiniest Module Wrapper - (c) Anas Nakawa - <anas.nakawa {at} gmail.com> | |
| // License: MIT (http://www.opensource.org/licenses/mit-license.php) | |
| (function() { | |
| function myLibrary() {}; | |
| // CommonJs / Node | |
| ( typeof module !== "undefined" && module.exports && ( module.exports = myLibrary ) ) || | |
| // AMD / RequireJs | |
| ( typeof define !== "undefined" && !define(function() { return myLibrary; }) ) || | |
| // browser | |
| ( typeof window !== "undefined" && ( window.myLibrary = myLibrary ) ); | 
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| concat: { | |
| options: { | |
| separator: ';' | |
| }, | |
| dist: { | |
| src: ['src/**/*.js'], | |
| dest: 'dist/<%= pkg.name %>.js' | 
| { | |
| "en": { | |
| "AD": "Andorra", | |
| "AE": "United Arab Emirates", | |
| "AF": "Afghanistan", | |
| "AG": "Antigua and Barbuda", | |
| "AI": "Anguilla", | |
| "AL": "Albania", | |
| "AM": "Armenia", | |
| "AN": "Netherlands Antilles", | 
| // AMD / Common Js / Browser Wrapper pattern | |
| // copyright to [millermedeiros](https://github.com/millermedeiros/js-signals/blob/master/src/wrapper.js) | |
| // --------------------------------- | |
| (function(global){ | |
| var libName; | |
| // define your library | |
| //exports to multiple environments | |
| if(typeof define === 'function' && define.amd){ //AMD | 
What are we trying to observe? Raw object data.
// Objects
var obj = { id: 2 };
obj.id = 3; // obj == { id: 3 }
 
// Arrays
var arr = ['foo', 'bar'];
arr.splice(1, 1, 'baz'); // arr == ['foo', 'baz'];
| /* | |
| * source: http://nicolasgallagher.com/micro-clearfix-hack/ | |
| */ | |
| .clearfix:before, .clearfix:after { content: " "; display: table; } | |
| .clearfix:after { clear: both; } | |
| .clearfix { *zoom: 1; } | 
| // tiny JavaScript inheritance | |
| // extracted from CoffeeScript | |
| // | |
| // * **param:** {Class} child | |
| // * **param:** {Class} parent | |
| var extends = function( child, parent ) { | |
| for ( var key in parent ) { | |
| if ( {}.hasOwnProperty.call( parent, key ) ) { | |
| child[ key ] = parent[ key ]; | |
| } | 
| // ------------------------------ | |
| // generic media query mixin | |
| // ------------------------------ | |
| // author: Anas Nakawa | |
| // license: MIT | |
| // ------------------------------ | |
| // table of content | |
| // ------------------------------ | |
| // media-compact-retina (private) | |
| // media-conpact-normal (private) |