Skip to content

Instantly share code, notes, and snippets.

@FesterCluck
Created April 7, 2014 09:33
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 FesterCluck/10017298 to your computer and use it in GitHub Desktop.
Save FesterCluck/10017298 to your computer and use it in GitHub Desktop.
Angular.extend
function extend(dst) {
var h = dst.$$hashKey;
forEach(arguments, function(obj){
if (obj !== dst) {
forEach(obj, function(value, key){
dst[key] = value;
});
}
});
setHashKey(dst,h);
return dst;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment