Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 483B9EA1C for ; Tue, 12 Feb 2013 19:33:09 +0000 (UTC) Received: (qmail 61998 invoked by uid 500); 12 Feb 2013 19:33:08 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 61889 invoked by uid 500); 12 Feb 2013 19:33:07 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 61649 invoked by uid 99); 12 Feb 2013 19:33:07 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 19:33:07 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 41ADD51667; Tue, 12 Feb 2013 19:33:07 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: agrieve@apache.org To: commits@cordova.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [42/50] js commit: [ios] Move logger init into plugininit.js Message-Id: <20130212193307.41ADD51667@tyr.zones.apache.org> Date: Tue, 12 Feb 2013 19:33:07 +0000 (UTC) [ios] Move logger init into plugininit.js Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/e389dfdd Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/e389dfdd Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/e389dfdd Branch: refs/heads/symbolmapping Commit: e389dfdd206f11fea21e1bb5298572efe9b641d3 Parents: d7836c1 Author: Andrew Grieve Authored: Tue Jan 29 14:49:16 2013 -0500 Committer: Andrew Grieve Committed: Tue Feb 12 14:24:33 2013 -0500 ---------------------------------------------------------------------- lib/ios/platform.js | 5 ++--- lib/ios/plugin/ios/logger/plugininit.js | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-js/blob/e389dfdd/lib/ios/platform.js ---------------------------------------------------------------------- diff --git a/lib/ios/platform.js b/lib/ios/platform.js index c424257..83c02cf 100644 --- a/lib/ios/platform.js +++ b/lib/ios/platform.js @@ -24,11 +24,10 @@ module.exports = { initialize:function() { var modulemapper = require('cordova/modulemapper'); + modulemapper.loadMatchingModules(/cordova.*\/plugininit$/); + modulemapper.loadMatchingModules(/cordova.*\/symbols$/); modulemapper.mapModules(window); } }; -// use the native logger -var logger = require("cordova/plugin/logger"); -logger.useConsole(false); http://git-wip-us.apache.org/repos/asf/cordova-js/blob/e389dfdd/lib/ios/plugin/ios/logger/plugininit.js ---------------------------------------------------------------------- diff --git a/lib/ios/plugin/ios/logger/plugininit.js b/lib/ios/plugin/ios/logger/plugininit.js new file mode 100644 index 0000000..2c5f2f9 --- /dev/null +++ b/lib/ios/plugin/ios/logger/plugininit.js @@ -0,0 +1,24 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software 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. + * +*/ + +// use the native logger +var logger = require("cordova/plugin/logger"); +logger.useConsole(false);