From b85f549b2988bf502ffab7befe9e528bc5de68d5 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 20 Nov 2010 06:58:45 +0000 Subject: 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 --- js/lib/elgglib.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js/lib/elgglib.js') 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. * -- cgit v1.2.3