You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2011/07/02 02:05:18 UTC
svn commit: r1142122 -
/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-core.js
Author: hlship
Date: Sat Jul 2 00:05:18 2011
New Revision: 1142122
URL: http://svn.apache.org/viewvc?rev=1142122&view=rev
Log:
TAP5-999: Add some documentation to the T5 namespace, and remove one of the direct Prototype dependencies
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-core.js
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-core.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-core.js?rev=1142122&r1=1142121&r2=1142122&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-core.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-core.js Sat Jul 2 00:05:18 2011
@@ -14,9 +14,11 @@
*/
/**
- * The master T5 namespace.
+ * The master T5 namespace. A few critical functions are added directly to T5,
+ * but mostly it is used as a containing namespace for namespaces defined by
+ * other modules.
*
- * @since 5.3.0
+ * @since 5.3
*/
var T5 = {
/**
@@ -33,8 +35,9 @@ var T5 = {
* @returns the destination object
*/
extend : function(destination, source) {
- if (Object.isFunction(source))
+ if (typeof source == "function") {
source = source();
+ }
// Prototype:
return Object.extend(destination, source);