|
||||||||
PREV NEXT | FRAMES NO FRAMES |
A very simple test module.
Version: 0.7
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/license2.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 James A. Overton's code (james@overton.ca). * * The Initial Developer of the Original Code is James A. Overton. * Portions created by the Initial Developer are Copyright (C) 2005-2006 * the Initial Developer. All Rights Reserved. * * Contributor(s): * James A. Overton <james@overton.ca> * * ***** END LICENSE BLOCK ***** */ /** * @fileoverview A very simple test module. * @link http://mozile.mozdev.org * @author James A. Overton <james@overton.ca> * @version 0.7 */ 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 MozileMediator.prototype.testFunction = function() { return 2; } } else { alert("Mozile TestModule2 Error: Dependency "+requireModule+" "+requireVersion+" not met"); }
|
||||||||
PREV NEXT | FRAMES NO FRAMES |