[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kjsembed
Subject:    [kjsembed] kdebindings/kjsembed/bindings
From:       Ian Reinhart Geiser <geiseri () kde ! org>
Date:       2005-02-24 17:04:13
Message-ID: 20050224170413.9AD1E110E7 () office ! kde ! org
[Download RAW message or body]

CVS commit by geiseri: 

Fix regression with QSize not being added or executed.  For next version
we need to have this added in 1 place vs 3... less places to get it wrong :(


  M +4 -4      size_imp.cpp   1.4


--- kdebindings/kjsembed/bindings/size_imp.cpp  #1.3:1.4
@@ -39,5 +39,5 @@ Size::~Size()
 void Size::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
 
-    if( JSProxy::checkType(object, JSProxy::ValueProxy, "QSize") ) return;
+    if( !JSProxy::checkType(object, JSProxy::ValueProxy, "QSize") ) return;
     
     JSProxy::MethodTable methods[] = {
@@ -69,5 +69,5 @@ void Size::addBindings( KJS::ExecState *
 
 KJS::Value Size::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
-    if( JSProxy::checkType(self, JSProxy::ValueProxy, "QSize") ) return KJS::Value();
+    if( !JSProxy::checkType(self, JSProxy::ValueProxy, "QSize") ) return KJS::Value();
     KJS::Value retValue = KJS::Value();
     JSValueProxy *vp = JSProxy::toValueProxy( self.imp() );


_______________________________________________
kjsembed mailing list
kjsembed@kde.org
https://mail.kde.org/mailman/listinfo/kjsembed
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic