Update change log and spec for wrt-plugins-tizen_0.2.84
[framework/web/wrt-plugins-tizen.git] / src / standards / Tizen / Calendar / JSCalendar.cpp
index 6e81d93..6861edb 100755 (executable)
@@ -347,6 +347,8 @@ JSValueRef JSCalendar::update(JSContextRef context,
             ThrowMsg(ConversionException, "Wrong first parameter type.");
         }
 
+        CalendarConverter converter(context);
+
         JSObjectRef arg = JSValueToObject(context, arguments[0], exception);
         CalendarEventPtr item = JSCalendarEvent::getPrivateObject(arg);
         if (!item) {
@@ -354,7 +356,6 @@ JSValueRef JSCalendar::update(JSContextRef context,
         }
 
         bool updateAllInstances = true; // Set the default value.
-        CalendarConverter converter(context);
         if (argumentCount>=2) {
             updateAllInstances = converter.toBool(arguments[1]);
         }