|
||||||||
PREV NEXT | FRAMES NO FRAMES |
A simple module used only for testing purposes.
Version: 0.7.0
Author: James A. Overton
/* ***** BEGIN LICENSE BLOCK ***** * Licensed under Version: MPL 1.1/GPL 2.0/LGPL 2.1 * Full Terms at http://mozile.mozdev.org/license.html * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Playsophy code (www.playsophy.com). * * The Initial Developer of the Original Code is Playsophy * Portions created by the Initial Developer are Copyright (C) 2002-2003 * the Initial Developer. All Rights Reserved. * * Contributor(s): * James A. Overton <james@overton.ca> * * ***** END LICENSE BLOCK ***** */ /** Test Module 2 * @fileoverview A simple module used only for testing purposes. * * @link http://mozile.mozdev.org * @author James A. Overton <james@overton.ca> * @version 0.7.0 */ var testModule2Loaded = "Chimps"; var requireModule = "TestModule1"; var requireVersion = "minVersion=1.0.0"; // Make sure the requirements for the dependencies are met if(mozile.moduleIsLoaded(requireModule, requireVersion)) { // Load your stuff Mozile.prototype.testFunction = function() { return 2; } // Register the module version mozile.registerModule("TestModule2","2.0.0"); } else { alert("Mozile TestModule2 Error: Dependency "+requireModule+" "+requireVersion+" not met"); }
|
||||||||
PREV NEXT | FRAMES NO FRAMES |