Author: sergeyhalipov
Date: 2008-03-20 14:23:15 -0400 (Thu, 20 Mar 2008)
New Revision: 7027
Modified:
trunk/framework/impl/src/main/javascript/prototype/prototype-1.6.0.2.js
Log:
http://jira.jboss.com/jira/browse/RF-2538
http://jira.jboss.com/jira/browse/RF-1914
Modified: trunk/framework/impl/src/main/javascript/prototype/prototype-1.6.0.2.js
===================================================================
--- trunk/framework/impl/src/main/javascript/prototype/prototype-1.6.0.2.js 2008-03-20
18:07:18 UTC (rev 7026)
+++ trunk/framework/impl/src/main/javascript/prototype/prototype-1.6.0.2.js 2008-03-20
18:23:15 UTC (rev 7027)
@@ -73,6 +73,10 @@
Class.Methods = {
addMethods: function(source) {
+ if (!source) {
+ return;
+ }
+
var ancestor = this.superclass && this.superclass.prototype;
var properties = Object.keys(source);