From e2de507e0261c9b138cd3cf5356c21eca3e7a28d Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Mon, 16 Dec 2019 20:09:38 -0500 Subject: Issue #1323 - Move XULRunner back to topsrcdir --- application/xulrunner/examples/simple/content/simple.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 application/xulrunner/examples/simple/content/simple.js (limited to 'application/xulrunner/examples/simple/content/simple.js') diff --git a/application/xulrunner/examples/simple/content/simple.js b/application/xulrunner/examples/simple/content/simple.js deleted file mode 100644 index acf6f1029..000000000 --- a/application/xulrunner/examples/simple/content/simple.js +++ /dev/null @@ -1,17 +0,0 @@ -/* vim:set ts=2 sw=2 sts=2 et cin: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -function onButtonClick() { - var textbox = document.getElementById("textbox"); - - var contractid = (textbox.value % 2 == 0) ? - "@test.mozilla.org/simple-test;1?impl=js" : - "@test.mozilla.org/simple-test;1?impl=c++"; - - var test = Components.classes[contractid]. - createInstance(Components.interfaces.nsISimpleTest); - - textbox.value = test.add(textbox.value, 1); -} -- cgit v1.2.3