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
| // For more information see: http://emberjs.com/guides/routing/ | |
| App.Router.map(function() { | |
| this.resouce('plan', function() { | |
| this.resource('projects', function() { | |
| this.resource('project', {path: ':project_id'}) | |
| }); | |
| }); | |
| }); |
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
| {{view App.TimePickerView name='timepicker'}} | |
| App.TimePickerView = Ember.View.extend({ | |
| templateName: 'timepicker', | |
| didInsertElement: function() { | |
| this.$('[name=' + this.get('name') + ']').timepicker({ | |
| minuteStep: 1, | |
| showSeconds: true, |
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.SomeComponent = Em.Component.extend | |
| externalLibDidChange: (newValue) -> | |
| @set 'value', newValue | |
| valueDidChange: (-> | |
| Em.run.once @, 'updateExternalLibValue' | |
| ).observes 'value' | |
| updateExternalLibValue: -> | |
| externalLib.update @get('value') |
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.Store = DS.Store.extend | |
| pushRecord: (type, record) -> | |
| key = type.underscore().pluralize() | |
| payload = {} | |
| payload[key] = [record] | |
| @pushPayload type, payload | |
| @getById type, record.id |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Foo = Em.Object.extend | |
| someProp: Em.computed 'otherProp1', 'otherProp2', -> | |
| @get('otherProp1') + @get('otherProp2') |
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
| # generated by Slic3r 0.9.11-dev on Sun Nov 24 14:47:03 2013 | |
| avoid_crossing_perimeters = | |
| bed_size = 165,160 | |
| bed_temperature = 95 | |
| bottom_solid_layers = 3 | |
| bridge_acceleration = 0 | |
| bridge_fan_speed = 100 | |
| bridge_flow_ratio = 1 | |
| bridge_speed = 60 | |
| brim_width = 0 |
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
| Em.ApplicationRoute = Em.Route.extend({ | |
| activate: function() { | |
| var self = this; | |
| $(document).keypress(function(e) { | |
| if (/* it is the right arrow */) { | |
| self.send('navigateRight'); | |
| } else if (/* it is the left arrow */) { | |
| self.send('navigateLeft'); | |
| } | |
| }); |
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
| ╭─alex@aspeller ~/opensource/ember.js ‹2.0.0-p353› ‹improve-notempty-docs› | |
| ╰─➤ time bundle check | |
| Resolving dependencies... | |
| The Gemfile's dependencies are satisfied | |
| bundle check 0.40s user 0.07s system 98% cpu 0.467 total |