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
/** @private */
_appendQueryString: function(url, params) {
// very simple, does not handle arrays or objects, just takes a hashes of simple values
var name, queryString = [] ;
for (name in params) {
if (params.hasOwnProperty(name)) {
queryString.push("%@=%@".fmt(name,params[name]));
}
}
return [url, queryString.join('&')].join('?') ;
_response: function(request, userData) {
var json = request.get('response') ;
Refresher.processJson(json, {
query: userData.query
});
},
SC.Request.putUrl(this._appendQueryString(url, params))
.notify(this, this._response, {
query: query,
selection: selection,
mailbox: mailbox,
folder: folder,
read: flag
})
.set('isJSON', YES)
.send() ;
App.adviceListController = SC.ArrayController.create({
sourceRoot: function() {
var groups = {}, headings = [], group, adviceAry, ret ;
var source = this.get('content') ;
if (!source) return null ;
source.forEach(function(advice) {
if (group = advice.get('group')) {
adviceAry = groups[group] ;
render: function(renderContext) {
renderContext.push('<div>');
this.renderChildren(renderContext);
renderContext.push('</div>');
}
troy:private-abbot onitunes$ rake spec
(in /Users/onitunes/git/sproutit/private-abbot)
WARNING: Possible conflict with Rake extension: String#ext already exists
WARNING: Possible conflict with Rake extension: String#pathmap already exists
WARNING: Not testing markdown() because BlueCloth is not installed
...............................................................................................................................................................................F.....F......................FF..................................................................................FFFFFFF.................FF..............F.......FFF.FFFFFFFFFF...........F.......FF..................
1)
NoMethodError in 'SproutCore::Builder::Html API for templates StaticHelper exposes stylesheets_for_client() does NOT add stylesheet for test if CONFIG.load_test'
undefined method `manifest_for' for nil:NilClass
troy:private-abbot onitunes$ rake spec
(in /Users/onitunes/git/sproutit/private-abbot)
WARNING: Possible conflict with Rake extension: String#ext already exists
WARNING: Possible conflict with Rake extension: String#pathmap already exists
WARNING: Not testing markdown() because BlueCloth is not installed
...............................................................................................................................................................................F.....F......................FF..................................................................................FFFFFFF.................FF..............F.......FFF.FFFFFFFFFF...........F.......FF..................
1)
NoMethodError in 'SproutCore::Builder::Html API for templates StaticHelper exposes stylesheets_for_client() does NOT add stylesheet for test if CONFIG.load_test'
undefined method `manifest_for' for nil:NilClass
//
// indentation should be two spaces, not tabs
//
// THIS (soft-tabs, two spaces):
var p = 12;
// NOT THIS (hard tabs):
var p = 12; // wrong: uses a tab, not two spaces
// THIS:
successfulLoad:function(){
console.log("Core#successfulLoad called...");
var handled = NO;
switch(this.state.a){
case 2:
if(SC.Store.findRecords({recordType: Cp2.LandingPage}).length > 0){
this.goState('a','5');
}
else if(SC.Store.findRecords({recordType: Cp2.LandingPage}).length){
require('core') ;
/**
@mixin
This where we will put all of the State core to keep it centralized.
@extends Cp2
@author Evin Grano
@version 0.1