Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6FBC2200C63 for ; Thu, 27 Apr 2017 01:30:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6E680160BB4; Wed, 26 Apr 2017 23:30:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DC049160BA8 for ; Thu, 27 Apr 2017 01:29:59 +0200 (CEST) Received: (qmail 57958 invoked by uid 500); 26 Apr 2017 23:29:59 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 57947 invoked by uid 99); 26 Apr 2017 23:29:58 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2017 23:29:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A7ACFDFDAC; Wed, 26 Apr 2017 23:29:58 +0000 (UTC) From: stevengill To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-lib pull request #549: CB-12705: Pass plugin info to project-level p... Content-Type: text/plain Message-Id: <20170426232958.A7ACFDFDAC@git1-us-west.apache.org> Date: Wed, 26 Apr 2017 23:29:58 +0000 (UTC) archived-at: Wed, 26 Apr 2017 23:30:00 -0000 Github user stevengill commented on a diff in the pull request: https://github.com/apache/cordova-lib/pull/549#discussion_r113586243 --- Diff: cordova-lib/src/hooks/HooksRunner.js --- @@ -178,7 +178,9 @@ function runScriptViaModuleLoader(script, context) { } var scriptFn = require(script.fullPath); context.scriptLocation = script.fullPath; - context.opts.plugin = script.plugin; + if(script.plugin) { + context.opts.plugin = script.plugin; --- End diff -- Am I correct in understanding that this is already being passed in? You just add a if statement to confirm it exists before assigning? @feichngr --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org