Print Page | Close Window

What's the deal with "$pc" in some JS files?

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=6007
Printed Date: 21-November-2024 at 12:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: What's the deal with "$pc" in some JS files?
Posted By: Brett
Subject: What's the deal with "$pc" in some JS files?
Date Posted: 06-May-2015 at 1:37am
I've noticed that, about half of the time, ProductCart's JavaScript code, specifically the jQuery stuff, uses "$pc" as an alias for jQuery's "$".

What's the reason for this abstraction? It seems to me like just sticking with jQuery's "$" would work fine in most of these cases, and using "$pc" seems to make it harder to work with the jQuery code.

I've tried looking through (literally all of) the various JS files within ProductCart to determine the reason for this, but have been unable to figure it out. Hopefully someone can shed some light on this curiosity.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net