Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View edurbin's full-sized avatar

Eric Durbin edurbin

  • Des Moines, Iowa
View GitHub Profile
@edurbin
edurbin / datatable.js
Created December 13, 2011 15:48
yui2 datatable memory leak fix
/*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
/**
* Mechanism to execute a series of callbacks in a non-blocking queue. Each callback is executed via setTimout unless configured with a negative timeout, in which case it is run in blocking mode in the same execution thread as the previous callback. Callbacks can be function references or object literals with the following keys:
* <ul>
* <li><code>method</code> - {Function} REQUIRED the callback function.</li>
@edurbin
edurbin / event-delegate.js
Created December 13, 2011 15:49
yui2 event-delegate memory fix
/*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
/**
* Augments the Event Utility with a <code>delegate</code> method that
* facilitates easy creation of delegated event listeners. (Note: Using CSS
* selectors as the filtering criteria for delegated event listeners requires