This file contains 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
/* | |
Option 1 is the emberist way of doing it. | |
But I find that it makes it harder to group code in larger controllers. | |
*/ | |
BC.Controller.AssetDialog = BC.Controller.extend({ | |
actions: { | |
showReference: function(reference) { | |
/* Open reference dialog */ | |
} | |
} |
This file contains 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
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),(f.ic||(f.ic={})).ajax=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | |
"use strict"; | |
/*! | |
* ic-ajax | |
* | |
* - (c) 2013 Instructure, Inc | |
* - please see license at https://github.com/instructure/ic-ajax/blob/master/LICENSE | |
* - inspired by discourse ajax: https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/mixi |
This file contains 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
Tce.mainPage = SC.Page.design({ | |
// The main pane is made visible on screen as soon as your app is loaded. | |
// Add childViews to this pane for views to display immediately on page | |
// load. | |
mainPane: SC.MainPane.design({ | |
childViews: 'myCustomView'.w(), | |
myCustomView: SC.View.design({ | |
childViews: ['checkbox'], |
This file contains 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: Sample | |
// Copyright: @2011 My Company, Inc. | |
// ========================================================================== | |
/*globals Sample */ | |
Sample = SC.Application.create({ | |
store: SC.Store.create().from(SC.Record.fixtures) | |
}); |
This file contains 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
ScaleUI.taskTagController = SC.ArrayController.create( | |
/** @scope ScaleUI.taskTagController.prototype */ { | |
queuedTasks: function() { | |
return content.filterProperty('state', TaskState.QUEUED); | |
}.property('@each.state').cacheable(), | |
runningTasks: function() { | |
return content.filterProperty('state', TaskState.RUNNING); | |
}.property('@each.state').cacheable(), |
This file contains 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
diff --git a/frameworks/runtime/core.js b/frameworks/runtime/core.js | |
index 2d12957..4b553f4 100644 | |
--- a/frameworks/runtime/core.js | |
+++ b/frameworks/runtime/core.js | |
@@ -316,8 +316,6 @@ SC.mixin(/** @scope window.SC.prototype */ { | |
guidKey: "SproutCore" + ( SC.VERSION + Math.random() ).replace( /\D/g, "" ), | |
// Used for guid generation... | |
- _guidPrefixes: {"number": "nu", "string": "st"}, | |
- _guidCaches: {"number": {}, "string": {}}, |
This file contains 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 g = require('../garcon/lib/garçon'); | |
var server = g.Server.create({proxyHost: 'localhost', proxyPort: 8080}); | |
var myapp; | |
var shouldBuild = false; | |
var stdHtmlBody = [ | |
'<div id="loading">', | |
'<p id="loading">', | |
'Loading…', |
This file contains 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 g = require('../garcon/lib/garçon'); | |
var myapp; | |
var combineScripts = false; | |
//var shouldBuild = false; | |
//var stdHtmlBody = [ | |
//'<div id="loading">', | |
//'<p id="loading">', | |
//'Loading…', |
This file contains 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
MyApp = SC.Application.create({ | |
store: SC.Store.create() | |
}); | |
MyApp.MyRecord = SC.Record.extend(); | |
MyApp.resourcePath = "myRecord"; | |
// Load the record and save the storeKey | |
var storeKey = MyApp.store.loadRecord(MyApp.MyRecord, {}); |
OlderNewer