Skip to content

Instantly share code, notes, and snippets.

View erichocean's full-sized avatar

Erich Ocean erichocean

  • Xy Group Ltd
  • North Carolina
View GitHub Profile
require('core');
OI.IframeView = SC.View.extend({
content: null,
contentBindingDefault: SC.Binding.SingleNotEmpty, // shouldn't be necessary, but is *grrr* (strips the outer array)
emptyElement: '<iframe></iframe>',
frameBorder: 0,
// ==========================================================================
// OI.MailboxController
// ==========================================================================
require('core');
/** @class
(Document Your View Here)
require('core');
require('models/message');
OI.messagesController = SC.ArrayController.create({
allowsEmptySelection: false,
allowsMultipleSelection: true,
contentBinding: 'OI.mailboxController.messages',
contentBindingDefault: SC.Binding.Multiple,
require('core');
require('models/record');
OI.Folder = OI.Record.extend({
dataSource: SC.Store,
_mailboxes: null,
init: function() { this._isLoading = false; this._mailboxes = { lastUpdatedAt: null, value: [] }; },
mailboxes: function() {
<script type="text/javascript">
(function() {
var SC = SC.Deprecated;
SC.page = SC.Page.create({
layoutSize: { width: 800, height: 600 }, // the size we used to position everything statically...
marginInset: SC.View.outlet({
outlets: ['projectNameLabel','appProjectDirLabel','projectAppsScroller','appNameLabel','appDirLabel','appFilesScroller'],
// ========================================================================
// SproutCore
// copyright 2006-2008 Sprout Systems, Inc.
// ========================================================================
(function() {
var SC = SC.Deprecated;
require('foundation/object') ;
// ========================================================================
// SproutCore
// copyright 2006-2008 Sprout Systems, Inc.
// ========================================================================
require('views/view') ;
/**
@class
// ========================================================================
// SproutCore
// copyright 2006-2008 Sprout Systems, Inc.
// ========================================================================
require('views/view') ;
/**
@class
/* vim: set sw=4 ts=8 et tw=78: */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
//
// A RackJS app is a Function that: responds to .call(), expects "this" as its environment, and returns
// an array with 3 objects: status (a Number), headers (a Hash), and body (an Object that responds to each() or toString())
//
// simplest possible application:
RackJS.Handler.Mongrel.run( function app() { return [200, {}, 'Hello world']; }, { port: 3000 } );
// RackJS will do:
// var env = /* set up the environment */;