emberjs/ember.js — pull request #3124 by imginohu (2013-08-09 07:01:45+00:00)
Title: add Ember.create unit test, preventing parent object's pollute

var K = function() {};

Ember.create = function(obj, props) {
K.prototype = obj;
obj = new K();
if (props) {
K.prototype = obj; // prevent pollute
for (var prop in props) {
K.prototype[prop] = props[prop].value;
}
obj = new K();
}
K.prototype = null;

return obj;
};