Skip to content

Instantly share code, notes, and snippets.

@krisselden
Created June 9, 2012 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krisselden/2902620 to your computer and use it in GitHub Desktop.
Save krisselden/2902620 to your computer and use it in GitHub Desktop.
//current standalone
Ember.get = function(obj, key) {
//... use obj
}
// standalone case
get = Ember.get;
get(obj, 'foo');
// on Object
{ get: function(key) { Ember.get(this, key)} }
// proposed
Ember.get = function(key) {
//... use this
}
// standalone case
get = Ember.get;
get.call(obj, 'foo');
// on Object
{ get: Ember.get }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment