[Kst] branches/work/kst/1.6/kst/src
    Andrew Walker 
    arwalker at sumusltd.com
       
    Fri Jan 18 20:16:34 CET 2008
    
    
  
SVN commit 763153 by arwalker:
CCBUG:151757 KstBasicPlugin and KstCPlugin are now accessible from javaScript
 M  +5 -5      extensions/js/bind_plugin.cpp  
 M  +6 -0      libkstmath/kstbasicplugin.cpp  
--- branches/work/kst/1.6/kst/src/extensions/js/bind_plugin.cpp #763152:763153
@@ -430,7 +430,7 @@
           bp->setInputVector(input, vp);
           bp->setDirty(true);
         } else {
-          KJS::Object eobj = KJS::Error::create(exec, KJS::GeneralError, "0 Argument was not of the expected type.");
+          KJS::Object eobj = KJS::Error::create(exec, KJS::GeneralError, "Argument was not of the expected type.");
           exec->setException(eobj);
           return KJS::Undefined();
         }
@@ -440,7 +440,7 @@
           bp->setInputScalar(input, sp);
           bp->setDirty(true);
         } else {
-          KJS::Object eobj = KJS::Error::create(exec, KJS::GeneralError, "1 Argument was not of the expected type.");
+          KJS::Object eobj = KJS::Error::create(exec, KJS::GeneralError, "Argument was not of the expected type.");
           exec->setException(eobj);
           return KJS::Undefined();
         }
@@ -450,17 +450,17 @@
           bp->setInputString(input, sp);
           bp->setDirty(true);
         } else {
-          KJS::Object eobj = KJS::Error::create(exec, KJS::GeneralError, "2 Argument was not of the expected type.");
+          KJS::Object eobj = KJS::Error::create(exec, KJS::GeneralError, "Argument was not of the expected type.");
           exec->setException(eobj);
           return KJS::Undefined();
         }
       } else {
-        KJS::Object eobj = KJS::Error::create(exec, KJS::GeneralError, "3 Argument was not of the expected type.");
+        KJS::Object eobj = KJS::Error::create(exec, KJS::GeneralError, "Argument was not of the expected type.");
         exec->setException(eobj);
         return KJS::Undefined();
       }
     } else {
-      KJS::Object eobj = KJS::Error::create(exec, KJS::GeneralError, "4 Argument was not of the expected type.");
+      KJS::Object eobj = KJS::Error::create(exec, KJS::GeneralError, "Argument was not of the expected type.");
       exec->setException(eobj);
       return KJS::Undefined();
     }
--- branches/work/kst/1.6/kst/src/libkstmath/kstbasicplugin.cpp #763152:763153
@@ -290,11 +290,17 @@
 }
 
 
+//
+// to be used only from javaScript...
+//
 bool KstBasicPlugin::isValid() const {
   return inputsExist();
 }
 
 
+//
+// to be used only from javaScript...
+//
 bool KstBasicPlugin::validate() {
   bool rc = false;
 
    
    
More information about the Kst
mailing list