This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SC.mixin(SC.TemplateView.prototype, | |
/** @scope SC.TemplateView.prototype */{ | |
templateNameDidChange: function() { | |
SC.Logger.debug("Template name was set to " + this.get('templateName')); | |
this.rerender(); | |
}.observes('template'), | |
/** | |
Called when the template property associated with this view changes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.m | |
// ProtectTest | |
// Demonstrates newer versions of iOS now support PROT_EXEC pages, for just-in-time compilation. | |
// | |
// Must be compiled with Thumb disabled | |
// | |
// Created by Stuart Carnie on 3/4/11. | |
// Copyright 2011 Manomio LLC. All rights reserved. | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.rvmrc | |
abbot/ | |
garcon/ | |
tmp/ | |
sc-docs/ | |
.DS_Store | |
.project | |
*/.DS_Store | |
results/ | |
server.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @static | |
This mixin implements the basic target-action handling for a custom view. | |
@author Erich Ocean | |
*/ | |
EO.TargetAction = { | |
/** | |
The name of the action you want triggered when performAction() is called. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global Timesheet */ | |
Timesheet.datasource = SC.DataSource.create({ | |
fetch: function(store, query) { | |
if (query.fetch) return query.fetch(store); | |
else return NO; | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CohenTest.main = function main() { | |
// Step 1: Instantiate Your Views | |
// The default code here will make the mainPane for your application visible | |
// on screen. If you app gets any level of complexity, you will probably | |
// create multiple pages and panes. | |
CohenTest.getPath('mainPage.mainPane').append() ; | |
// Step 2. Set the content property on your primary controller. | |
// This will make your app come alive! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
now.ready(function() { | |
now.getVersion = function(callback) { | |
console.log('now.getVersion()'); | |
callback(null, CohenTest.NAMESPACE); | |
}; | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var everyone = require("now").initialize(server.httpServer); | |
everyone.connected(function() { | |
var app = this.now; | |
console.log(app); | |
this.now.getVersion(function(version) { | |
console.log("version is "+version); | |
}); | |
vows.describe('The Good Things').addBatch({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
employees: SC.ScrollView.design({ | |
layout: { top:74, width: 280, right: 10, bottom: 10 }, | |
contentView: SC.ListView.design(SC.CollectionFastPath, { | |
contentBinding: 'Timesheet.employeesController.arrangedObjects', | |
selectionBinding: 'Timesheet.employeesController.selection', | |
exampleView: SC.View.extend(SC.ContentDisplay, { | |
contentDisplayProperties: 'fullName'.w(), | |
layerIsCacheable: YES, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ========================================================================== | |
// Project: Smartgraphs Learner Data Unit Test | |
// Copyright: ©2010 Concord Consortium | |
// Author: Erich Ocean <[email protected]> | |
// ========================================================================== | |
/*globals Smartgraphs module test ok equals same stop start setup teardown setupUserAndSessionFixtures JSV */ | |
var env, schema; | |
module("Learner Data", { |