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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCWyPs8LCmo2YCwxLw1to0eES1umoS4n9h+C3TEp8OaCYsM/nBDzG4PnZ0BQzFDZYRu50RXpb/Y/n7RCWnW9s8V7kCM3D78YS15UWMZfu9ob0m03yuiSzbov2D/DRQLwEeIPPNK/1s6FpYZ6v+I/uPp86bNixhKdu+fgevNmqCySAVbcgDX/hKQLFWWJHZrudWoObnqoYIIdd10PsNhvaPo6z+U8Zpa5bGAJQKvf6Fd6X8qRhsflvreEO4qeengA5Vt/MaF5k446HwmQdqrnbxSsmhIhmFMyhzcyOX/0oCAI/+g3becc4A/NeTwS+o3OznjlGsqL+4Dgb6Niy9CKb3F martin@mbp |
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.View.reopen | |
| connectOutlet: (outletName, view) -> | |
| if @_hasEquivalentView(outletName, view) | |
| oldView = @get "_outlets.#{outletName}" | |
| if $old = oldView.$().clone().addClass('old') | |
| $old.find('script').remove() | |
| oldView.trigger 'beginTransition', $old | |
| @_super(outletName, view) |
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
| {{#each arrayOfFoos}} | |
| {{log this}} | |
| {{log controller}} | |
| {{log model}} | |
| {{/each | |
| {{#each arrayOfFoos itemController="foo"}} | |
| {{log this}} | |
| {{log controller}} | |
| {{log model}} |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.4/handlebars.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.6/ember.js"></script> | |
| <!-- <script src="http://builds.emberjs.com.s3.amazonaws.com/ember-data-0.13.js"></script> --> | |
| </head> | |
| <body> | |
| <script type="text/x-handlebars" data-template-name="index"> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.4/handlebars.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.6/ember.js"></script> | |
| <!-- <script src="http://builds.emberjs.com.s3.amazonaws.com/ember-data-0.13.js"></script> --> | |
| </head> | |
| <body> | |
| <script type="text/x-handlebars" data-template-name="index"> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| {{embed 'app.css'}} | |
| </head> | |
| <body> | |
| {{script "jquery" "2.0.3"}} | |
| {{script "handlebars" "1.0.0"}} | |
| {{script "ember" "latest"}} | |
| {{embed "*.hbs"}} |
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.SomeRoute = Ember.Route.extend | |
| model: -> | |
| @.store.find('some_data') |
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
| Ember.computed.groupBy = function(dependentKey, propertyKey) { | |
| return Ember.reduceComputed(dependentKey + ".@each." + propertyKey, { | |
| initialValue: Ember.MapWithDefault.create({ | |
| defaultValue: function() { | |
| return Ember.Set.create(); | |
| } | |
| }), | |
| addedItem: function(groups, item, changeMeta) { |
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.AppointmentsIndexRoute = Ember.Route.extend({ | |
| model: function(params) { | |
| return RSVP.hash({ | |
| appointments: this.store.find('appointment', params), | |
| day: params.day | |
| }); | |
| }, | |
| setupController: function(controller, model) { |
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
| Ember.computed.iterativeStringFilter = function(dependentKey, propertyKey, searchKey) { | |
| var options = { | |
| initialize: function (array, changeMeta, instanceMeta) { | |
| instanceMeta.filteredArrayIndexes = new Ember.SubArray(); | |
| }, | |
| addedItem: function(array, item, changeMeta, instanceMeta) { | |
| var itemValue = item.get(propertyKey), | |
| searchValue = this.get(searchKey), | |
| match = itemValue.indexOf(searchValue) > -1, |
OlderNewer