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
MyApp = {}; | |
MyApp.store = SC.Store.create(); | |
MyApp.Thing = SC.Record.extend({ | |
primaryKey: 'name', | |
name: SC.Record.attr(String) | |
}); | |
MyApp.thingController = SC.ArrayController.create({ |
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
MO.SelectableFieldView = SC.View.extend({ | |
content: null, | |
// .......................................................... | |
// VALIDATION | |
// | |
requiredFields: ['name'], |
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
diff --git a/frameworks/desktop/views/collection.js b/frameworks/desktop/views/collection.js | |
index 4a1bd23..d8aff63 100644 | |
--- a/frameworks/desktop/views/collection.js | |
+++ b/frameworks/desktop/views/collection.js | |
@@ -759,6 +759,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte | |
contentLengthDidChange: function() { | |
var content = this.get('content'); | |
this.set('length', content ? content.get('length') : 0); | |
+ this.computeLayout(); | |
}, |
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
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 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
XMPP = {}; | |
// ............................................... | |
// Models | |
// | |
XMPP.BOSHConnection = SC.Record.extend({ | |
primaryKey: 'jid', | |
jid: SC.Record.attr(String), | |
password: SC.Record.attr(String), |
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 B = { | |
foo: function () { | |
console.log("Foo B"); | |
} | |
}; | |
var A = SC.Object.extend(B, { | |
foo: function (original) { | |
console.log("Foo A"); | |
original(); |
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
XMPP = {}; | |
// ............................................... | |
// Models | |
// | |
XMPP.BOSHConnection = SC.Record.extend({ | |
primaryKey: 'jid', | |
jid: SC.Record.attr(String), | |
password: SC.Record.attr(String), |
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 hintSize = SC.IndexSet.HINT_SIZE, | |
start, set; | |
set = SC.IndexSet.create(); | |
set.add(1); | |
set.add(hintSize + 1); | |
// Before adding 2, | |
// the internal data structure looks like: |
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
getting_started | |
|`---- master [App just created using sc-init] | |
|`---- adding_states [App after adding states to the application] | |
. | |
. | |
. | |
|`---- add_a_data_source [App after adding a data source] | |
`---- backend_todos [App with statechart additions to make it talk to the backend] | |
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
#!/bin/sh | |
# | |
# Deploy script for hosting tagged versions of the todos app on github. | |
# | |
# Simply run ./deploy and it will checkout gh-pages, update it's references | |
# and create a directory (and built app) for each tag. | |
# | |
git checkout gh-pages | |
git reset --hard origin/master |