From commits-return-4801-apmail-tapestry-dev-archive=tapestry.apache.org@tapestry.apache.org Thu Mar 05 15:58:23 2009 Return-Path: Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: (qmail 81149 invoked from network); 5 Mar 2009 15:58:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2009 15:58:23 -0000 Received: (qmail 32323 invoked by uid 500); 5 Mar 2009 15:58:22 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 32280 invoked by uid 500); 5 Mar 2009 15:58:21 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 32271 invoked by uid 99); 5 Mar 2009 15:58:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 07:58:21 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 15:58:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C2DAD234C48D for ; Thu, 5 Mar 2009 07:57:56 -0800 (PST) Message-ID: <62480858.1236268676782.JavaMail.jira@brutus> Date: Thu, 5 Mar 2009 07:57:56 -0800 (PST) From: "Howard M. Lewis Ship (JIRA)" To: commits@tapestry.apache.org Subject: [jira] Assigned: (TAP5-555) Tapestry.ScriptManager.contains throws error when element doesn't have the prop param In-Reply-To: <382792800.1236221878579.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TAP5-555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Howard M. Lewis Ship reassigned TAP5-555: ----------------------------------------- Assignee: Howard M. Lewis Ship > Tapestry.ScriptManager.contains throws error when element doesn't have the prop param > ------------------------------------------------------------------------------------- > > Key: TAP5-555 > URL: https://issues.apache.org/jira/browse/TAP5-555 > Project: Tapestry 5 > Issue Type: Bug > Components: tapestry-core > Affects Versions: 5.0.18 > Reporter: Raul Montes > Assignee: Howard M. Lewis Ship > > Tapestry.ScriptManager.contains firsts lines are: > return $A(collection).any(function (element) > { > var existing = element[prop]; > if (existing.blank()) return false; > If element doesn't have the prop, then the existing var is null and existing.blank() throws an exception because the call of a method to a null variable. This problem happens for example (because of this i detected it) when i want to update a zone with a block that also loads stylesheets and scripts and, in the original page, there are script and or style tags embedded (