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: Todos | |
| # =========================================================================== | |
| # Add initial buildfile information here | |
| config :all, :required => :sproutcore | |
| # SET UP PROXY | |
| proxy "/task", :to => "localhost:8000" | |
| proxy "/tasks", :to => "localhost:8000" |
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
| didCreateTask: function(response, store, storeKey) { | |
| if (SC.ok(response)) { | |
| var data = response.get("body").content; | |
| store.dataSourceDidComplete(storeKey, data, data.guid); // update url | |
| } else store.dataSourceDidError(storeKey, response); | |
| }, |
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: RsvpClient.ListItemView | |
| // Copyright: ©2009 My Company, Inc. | |
| // ========================================================================== | |
| /*globals RsvpClient */ | |
| /** @class | |
| (Document Your View Here) |
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
| exampleView: SC.View.design({ | |
| childViews: "label".w(), | |
| label: SC.LabelView.design({ | |
| layout: {left:10, right:10, height:18,centerY:0}, | |
| valueBinding: ".parentView.content.name", | |
| isEditable: YES, | |
| fontWeight: SC.FONT_WEIGHT_BOLD, | |
| inlineEditorDidFinish: function(){ alert("test"); } | |
| }), | |
| isDropTarget: 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: Dictionary.Word Fixtures | |
| // Copyright: ©2009 My Company, Inc. | |
| // ========================================================================== | |
| /*globals Dictionary */ | |
| sc_require('models/word'); | |
| Dictionary.Word.FIXTURES = [ | |
| { guid: 1, |
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
| .toolbar .searchBox .border { | |
| -webkit-appearance: searchfield; | |
| border: 2px solid black; | |
| margin-top:-3px; | |
| -webkit-border-radius: 5px; | |
| } | |
| .toolbar. .searchBox input { background-color:transparent; } | |
| .toolbar .searchBox { background-color:transparent; } |
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
| tests/core/beget.js | |
| tests/core/clone.js | |
| tests/core/compare.js | |
| tests/core/console.js | |
| INFO: "Console.info is working" | |
| WARN: "Console.warn is working" | |
| ERROR: "Console.error is working" | |
| tests/core/guidFor.js | |
| tests/core/inspect.js | |
| tests/core/isArray.js |
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
| from django.http import HttpResponse | |
| from django.http import Http404 | |
| from cornelius import dudley | |
| import datetime | |
| import random | |
| import re, string | |
| try: import simplejson as json | |
| except ImportError: import json |
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
| // theme specified in an argument to builder | |
| // becomes .sc-view.sc-button-view.ace.light | |
| @view(sc-button-view) { | |
| border: none; | |
| padding: none; | |
| } | |
| // becomes .sc-view.sc-button-view.ace.light .left | |
| @view(sc-button-view) .left { |
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.PoolableClass = { | |
| isPooled: YES, | |
| _objectPool: [], | |
| maxPoolSize: 100, | |
| _pool_default_concat_values: {}, // default values for concatenated properties | |
| create: function() { | |
| // first, check pool |