#2471 (Javascript) Param.toStr()

SlimerDude Tue 22 Sep 2015

This brings Param.toStr() in line with the Java runtime:

diff -r 56d95b6fa8ad src/sys/js/fan/Param.js
--- a/src/sys/js/fan/Param.js	Tue Sep 22 09:31:42 2015 -0400
+++ b/src/sys/js/fan/Param.js	Tue Sep 22 23:39:47 2015 +0100
@@ -31,4 +31,4 @@
 fan.sys.Param.prototype.type = function() { return this.m_type; }
 fan.sys.Param.prototype.hasDefault = function() { return this.m_hasDefault; }
 fan.sys.Param.prototype.$typeof = function() { return fan.sys.Param.$type; }
-
+fan.sys.Param.prototype.toStr = function() { return this.m_type.toStr() + " " + this.m_name; }

andy Wed 23 Sep 2015

Login or Signup to reply.