summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFábio Mello <mello@profusion.mobi>2012-12-05 16:41:08 +0000
committerFábio Mello <mello@profusion.mobi>2012-12-05 16:41:08 +0000
commit76e57c9311fdefb79f8fd5c79c5d2a5edc3539cd (patch)
tree445c3afcb91464c8de414b48b2ef9be2753452c4
parenta6e5a2df87e0147670d46e849f5a307c57d201ff (diff)
elev8: Entry markup_to_utf8 (and vice-versa) unnecessary string check.
Summary: - markup_to_utf8 and utf8_to_markup were returning 'undefined' if entry value were not string (number, for example). Author: ederson <ederson@profusion.mobi> SVN revision: 80270
-rw-r--r--src/modules/elm/CElmEntry.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/elm/CElmEntry.cc b/src/modules/elm/CElmEntry.cc
index c7b0d0c..f940efe 100644
--- a/src/modules/elm/CElmEntry.cc
+++ b/src/modules/elm/CElmEntry.cc
@@ -756,18 +756,12 @@ Handle<Value> CElmEntry::context_menu_clear(const Arguments&)
756 756
757Handle<Value> CElmEntry::markup_to_utf8(const Arguments& args) 757Handle<Value> CElmEntry::markup_to_utf8(const Arguments& args)
758{ 758{
759 if (args[0]->IsString()) 759 return String::New(elm_entry_markup_to_utf8(*String::Utf8Value(args[0])));
760 return String::New(elm_entry_markup_to_utf8(*String::Utf8Value(args[0])));
761
762 return Undefined();
763} 760}
764 761
765Handle<Value> CElmEntry::utf8_to_markup(const Arguments& args) 762Handle<Value> CElmEntry::utf8_to_markup(const Arguments& args)
766{ 763{
767 if (args[0]->IsString()) 764 return String::New(elm_entry_utf8_to_markup(*String::Utf8Value(args[0])));
768 return String::New(elm_entry_utf8_to_markup(*String::Utf8Value(args[0])));
769
770 return Undefined();
771} 765}
772 766
773Handle<Value> CElmEntry::input_panel_show(const Arguments&) 767Handle<Value> CElmEntry::input_panel_show(const Arguments&)