Skip to content

Instantly share code, notes, and snippets.

View willbailey's full-sized avatar

Will Bailey willbailey

  • Facebook
  • San Francisco, CA
View GitHub Profile
@willbailey
willbailey / index.js
Created December 14, 2011 19:16
making property observation intrinsic to classes
'use strict';
var B = typeof exports !== 'undefined' ? exports : {};
// prefix for internal property state
var __PROP__ = '__PROP__';
// default constructor used in setting up prototype chain
var ctor = function() {};
B.extend = function(__super__, proto) {
@willbailey
willbailey / gist:981352
Created May 19, 2011 18:04
BoltJS TableView
// ### TableView
// TableView provides an efficient mechanism for progressively
// rendering from a data source provided by the owner object.
// Cells are queued for reuse when they go offscreen and then
// translated back into position with updated content as they
// are reused.
var TableView = exports.TableView = core.createClass({
name: 'TableView',
extend: View,