Skip to content

Instantly share code, notes, and snippets.

View rjoleary's full-sized avatar

Ryan O'Leary rjoleary

View GitHub Profile
@cowboy
cowboy / jquery.ba-simple-ajax-mocking.js
Created November 16, 2011 20:24
Simple jQuery (1.5+) AJAX Mocking (requires JSON, tested in jQuery 1.7))
/*!
* Simple jQuery (1.5+) AJAX Mocking - v0.1.1 - 2012-08-17
* http://benalman.com/
*
* Copyright (c) 2012 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
(function($) {