Revert "Performance improvement of PluginManager with clean up some plugin code."
[platform/framework/web/wrt-plugins-common.git] / src / standards / W3C / Widget / JSWidget.cpp
index 8a6843c..162820f 100644 (file)
@@ -237,7 +237,8 @@ JSContextRef JSWidget::m_globalContext = NULL;
 void JSWidget::initialize(JSContextRef context,
                           JSObjectRef object)
 {
-    LogDebug("entered. Context : " << context << ", Object: " << object);
+    LogDebug("entered. Context : " << context);
+    LogDebug("Object: " << object);
 
     JSWidgetPrivateObject* priv =
         static_cast<JSWidgetPrivateObject*>(JSObjectGetPrivate(object));
@@ -265,6 +266,7 @@ void JSWidget::initialize(JSContextRef context,
 
             priv = new JSWidgetPrivateObject(context, widgetPriv);
             JSObjectSetPrivate(object, priv);
+            LogDebug("private object created");
         }
         Catch(Commons::InvalidArgumentException){
             LogError("You should register widget id in ON_WIDGET_START");
@@ -296,8 +298,8 @@ void JSWidget::finalize(JSObjectRef object)
 }
 
 void JSWidget::acquireGlobalContext(java_script_context_t global_context,
-                                    js_object_instance_t /*iframe*/,
-                                    js_object_instance_t /*object*/)
+                                    js_object_instance_t iframe,
+                                    js_object_instance_t object)
 {
     if (!m_globalContext) {
         m_globalContext = static_cast<JSContextRef>(global_context);