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
/** @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('?') ; |
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
_response: function(request, userData) { | |
var json = request.get('response') ; | |
Refresher.processJson(json, { | |
query: userData.query | |
}); | |
}, |
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.Request.putUrl(this._appendQueryString(url, params)) | |
.notify(this, this._response, { | |
query: query, | |
selection: selection, | |
mailbox: mailbox, | |
folder: folder, | |
read: flag | |
}) | |
.set('isJSON', YES) | |
.send() ; |
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
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] ; |
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
render: function(renderContext) { | |
renderContext.push('<div>'); | |
this.renderChildren(renderContext); | |
renderContext.push('</div>'); | |
} |
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
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 |
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
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 |
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
// | |
// 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 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
// 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){ |
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
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 |