A possible usage for the controllers property ...
App.AutoSuggestController = Ember.Controller.extend({
});| public class LinzProviderTest extends TestCase { | |
| private LinzProvider provider; | |
| public void testAutocomplete() throws IOException { | |
| List<Location> stations = provider.autocompleteStations("Schumpeter"); | |
| assertNotNull(stations); | |
| assertEquals(1, stations.size()); | |
| Location schumpeter = stations.get(0); |
| // translation for austrian german, especially for the western, hillocky part (tyrol) | |
| { | |
| // maybe local de_AT_tyrol would fit better ... | |
| "locale": "de_AT", | |
| "text": { | |
| "#authors": [ | |
| { | |
| "name": "Malte Ubl", | |
| "screen-name": "cramforce" | |
| } |
| { | |
| "locale": "de", | |
| "text": { | |
| "#authors": [ | |
| { | |
| "name": "Malte Ubl", | |
| "screen-name": "cramforce" | |
| } | |
| ], | |
| "tweet": { |
| App = Ember.Application.create(); |
| //original ember version | |
| Ember.getPath = function(root, path) { | |
| var hasThis, isGlobal, ret; | |
| // Helpers that operate with 'this' within an #each | |
| if (path === '') { | |
| return root; | |
| } | |
| if (!path && 'string'===typeof root) { |
| Dashboard.Router = Ember.Router.extend({ | |
| root: Ember.Route.extend({ | |
| index: Ember.Route.extend({ | |
| route: '/:username', | |
| connectOutlets: function(router, context) { | |
| router.set('userController.content', Dashboard.User.find(context.username)); | |
| }, | |
| index: Ember.Route.extend({ | |
| route: '/', |
A possible usage for the controllers property ...
App.AutoSuggestController = Ember.Controller.extend({
});| App.store = DS.Store.create({ | |
| revision: 4, | |
| adapter: DS.RESTAdapter.create({ | |
| bulkCommit: false, | |
| ajax: function(url, type, hash) { | |
| this._super(url + '.json', type, hash); | |
| } | |
| }) | |
| }); |
| App = Ember.Application.create(); | |
| App.ApplicationView = Ember.View.extend(); | |
| App.ApplicationController = Ember.Controller.extend(); | |
| App.Router = Ember.Router.extend({ | |
| root: Ember.Route.extend({ | |
| index: Ember.Route.extend() | |
| }) | |
| }); |
| $(function(){ | |
| $("#files").bind("change", handleFileSelection); | |
| var dropzone = $("#dropzone"); | |
| dropzone.on("dragover",allowDrop); | |
| dropzone.on("drop",drop); | |
| }); | |
| function handleFileSelection(event){ | |
| upload(event.target.files); | |
| } |