[Kst] kdeextragear-2/kst/kst/extensions/js

George Staikos staikos at kde.org
Mon Apr 11 22:32:50 CEST 2005


CVS commit by staikos: 

match other arrays


  M +3 -6      bind_vector.cpp   1.15


--- kdeextragear-2/kst/kst/extensions/js/bind_vector.cpp  #1.14:1.15
@@ -178,17 +178,14 @@ KJS::Value KstBindVector::get(KJS::ExecS
 
 KJS::Value KstBindVector::getPropertyByIndex(KJS::ExecState *exec, unsigned propertyName) const {
-  double rc = KST::NOPOINT;
   if (!_v) {
-    KJS::Object eobj = KJS::Error::create(exec, KJS::GeneralError);
-    exec->setException(eobj);
-    return KJS::Number(rc);
+    return KJS::Undefined();
   }
 
+  double rc;
   _v->readLock();
   if (propertyName < unsigned(_v->length())) {
     rc = _v->value()[propertyName];
   } else {
-    KJS::Object eobj = KJS::Error::create(exec, KJS::RangeError);
-    exec->setException(eobj);
+    return KJS::Undefined();
   }
   _v->readUnlock();




More information about the Kst mailing list