From: Jean Privat Date: Wed, 26 Aug 2015 19:19:18 +0000 (-0400) Subject: pnacl: fix whitespaces X-Git-Tag: v0.7.8~65^2~9 X-Git-Url: http://nitlanguage.org pnacl: fix whitespaces Signed-off-by: Jean Privat --- diff --git a/examples/pnacl/converter/Makefile b/examples/pnacl/converter/Makefile index 1ef5995..8c9dbd7 100644 --- a/examples/pnacl/converter/Makefile +++ b/examples/pnacl/converter/Makefile @@ -1,4 +1,4 @@ -default: +default: ../../../bin/nitc --semi-global converter.nit HTTPD_PY := python $(NACL_SDK_ROOT)/tools/httpd.py diff --git a/examples/pnacl/converter/converter/index.html b/examples/pnacl/converter/converter/index.html index 539e4a9..4143033 100644 --- a/examples/pnacl/converter/converter/index.html +++ b/examples/pnacl/converter/converter/index.html @@ -12,7 +12,7 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and -# limitations under the License. +# limitations under the License. --> @@ -27,13 +27,13 @@
-
+
+ + + + +
diff --git a/examples/pnacl/converter/converter/js/functions.js b/examples/pnacl/converter/converter/js/functions.js index 86f44a9..cd7f506 100644 --- a/examples/pnacl/converter/converter/js/functions.js +++ b/examples/pnacl/converter/converter/js/functions.js @@ -17,19 +17,19 @@ // Checks that the text in the input is numeric and not null // and then if two currencies where chosen sends a dictionary to Nit. $( "#button" ).click(function() { - $("#pre-input").removeClass("has-error"); - if (($('#input').val() == "")||($.isNumeric($('#input').val()) == false)) { - $("#pre-input").addClass("has-error"); - } - else - { - if (($('#from').val() != null) && ($('#to').val() != null)) { - var dictionary = { - value: parseFloat($('#input').val()).toFixed(2), - from: $('#from').val(), - to: $('#to').val(), + $("#pre-input").removeClass("has-error"); + if (($('#input').val() == "")||($.isNumeric($('#input').val()) == false)) { + $("#pre-input").addClass("has-error"); + } + else + { + if (($('#from').val() != null) && ($('#to').val() != null)) { + var dictionary = { + value: parseFloat($('#input').val()).toFixed(2), + from: $('#from').val(), + to: $('#to').val(), + } + converterModule.postMessage(dictionary); } - converterModule.postMessage(dictionary); } - } }); diff --git a/lib/pnacl.nit b/lib/pnacl.nit index 89ff3cf..e7c8e5a 100644 --- a/lib/pnacl.nit +++ b/lib/pnacl.nit @@ -283,7 +283,7 @@ in "C Header" `{ } static PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance, PP_Resource pp_url_loader) { - // TODO + // TODO return PP_FALSE; } @@ -391,8 +391,8 @@ extern class PepperDictionary `{ struct PP_Var* `} var native_value = native_get(native_key) return native_value.to_nit end - - # Set function using PepperVars. + + # Set function using PepperVars. # # Sets the value associated with the specified key. # 'key' must be a String typed PepperVar. @@ -424,11 +424,11 @@ extern class PepperDictionary `{ struct PP_Var* `} fun native_delete(key: PepperVar) `{ g_varDictionaryInterface->Delete(*self, *key); `} - + # Deletes the specified key and its associated value, if the key exists. # # Takes a String. - fun delete(key: String) + fun delete(key: String) do var native_key = key.to_pepper native_delete native_key