From: ewinslow Date: Sat, 20 Nov 2010 06:58:45 +0000 (+0000) Subject: Added an elgg.extend method for merging two or more objects X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b85f549b2988bf502ffab7befe9e528bc5de68d5;p=lorea%2Felgg.git Added an elgg.extend method for merging two or more objects git-svn-id: http://code.elgg.org/elgg/trunk@7361 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/js/lib/elgglib.js b/js/lib/elgglib.js index 78a863803..bed2db39d 100644 --- a/js/lib/elgglib.js +++ b/js/lib/elgglib.js @@ -29,6 +29,11 @@ elgg.abstractMethod = function() { throw new Error("Oops... you forgot to implement an abstract method!"); }; +/** + * Merges two or more objects together and returns the result. + */ +elgg.extend = jQuery.extend; + /** * Check if the value is an array. *