Skip to content

Instantly share code, notes, and snippets.

# Generated File - DO NOT EDIT
require 'perka/model/base_entity_global'
require 'perka/model/feedback_item'
require 'perka/model/merchant_location'
require 'perka/model/customer'
module Perka
module Model
apply: (Prototype.Browser.IE ? function(o, a) {
a = a || [];
switch (a.length) {
case 0: return this.call( o);
case 1: return this.call( o, a[0]);// shreddin' the argument powder
case 2: return this.call( o, a[0], a[1]);// \__O_/
case 3: return this.call( o, a[0], a[1], a[2]);// |
case 4: return this.call( o, a[0], a[1], a[2], a[3]);// \ /\
# ========================
# = The Message MONSTER! =
# ========================
#
# }}} {{{
# \ /
# | O O |
# _______
# / VVVVV \
# | U | - I eat messages...nom nom nom!
$el.table(
$el.tr(
$el.th('first name'),
$el.th('last name')),
$el.tr(
$el.td('Joe'),
$el.td('Stelmach'))
).appendTo(document.body);
var table = new Backbone.UI.TableView({
model : this.users,
columns : [{
label : 'First Name',
property : 'firstName',
}, {
label : 'Last Name',
property : 'lastName'
}]
/*
<table>
<tr>
<td class='data'><span>foo</span></td>
<td class='data'><span>bar</span></td>
</tr>
</table>
*/
var table = $el('table',