Skip to content

Instantly share code, notes, and snippets.

@izb
izb / pager
Created August 1, 2013 08:39
Pager control
/*
Call pagerList with the page number and count.
Alter pageLink to modify page link HTML.
Alter the name, or remove the page link function that gets placed into the
global namespace. Alternatively, implement its behaviour.
@izb
izb / JSDoc patterns
Created May 15, 2013 10:43
JSDoc common doc patterns
{
/**
* module prologue comment
*
* @module my/amd/path
*
* if private
* @private
*/
@izb
izb / New AMD class
Created May 15, 2013 10:18
New AMD Class module
/*global define*/
define(function() {
'use strict';
/**
* @module my/amd/path
*/
/**
@izb
izb / isnode
Created May 15, 2013 10:12
Is this code running on node.js?
var isnode = (typeof module !== 'undefined' && module.exports);