[rkward-cvs] SF.net SVN: rkward:[4074] trunk/rkward/rkward/scriptbackends/ rkcomponentscripting.js

m-eik at users.sourceforge.net m-eik at users.sourceforge.net
Tue Dec 6 22:52:13 UTC 2011


Revision: 4074
          http://rkward.svn.sourceforge.net/rkward/?rev=4074&view=rev
Author:   m-eik
Date:     2011-12-06 22:52:13 +0000 (Tue, 06 Dec 2011)
Log Message:
-----------
.contains() threw an "not defined" error, .indexOf() seems to work. but shouldn't this actually rather be an array than a string?

Modified Paths:
--------------
    trunk/rkward/rkward/scriptbackends/rkcomponentscripting.js

Modified: trunk/rkward/rkward/scriptbackends/rkcomponentscripting.js
===================================================================
--- trunk/rkward/rkward/scriptbackends/rkcomponentscripting.js	2011-12-05 22:02:36 UTC (rev 4073)
+++ trunk/rkward/rkward/scriptbackends/rkcomponentscripting.js	2011-12-06 22:52:13 UTC (rev 4074)
@@ -86,7 +86,7 @@
 	}
 
 	this.isClass = function (classname) {
-		return (this._classes.contains (classname));
+		return (this._classes.indexOf(classname) != -1);
 	}
 
 	this.isDataFrame = function () {

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rkward-tracker mailing list