Skip to content

Instantly share code, notes, and snippets.

View jbest84's full-sized avatar
🏠
Working from home

Jason jbest84

🏠
Working from home
View GitHub Profile
@jbest84
jbest84 / SlowItemFileReadStore.js
Created March 10, 2012 21:27
Mock a slow connection
define([
"dojo/data/ItemFileReadStore",
"dojo/_base/declare",
"dojo/_base/lang"
], function (ItemFileReadStore, declare, lang) {
return declare("dojox.grid.tests.support.SlowItemFileReadStore", ItemFileReadStore, {
delay: 1000, // delay in milliseconds for each fetch
constructor: function (options) {
if (options) {
this.delay = options.delay > 0 ? options.delay : this.delay;