Search code examples
javascriptstringextjsextjs3

Why does Ext flash component concatenate two strings to form this url?


I found this in the FlashComponent source code and was wondering why they broke up the string at //. Here's the code:

/**
 * Sets the url for installing flash if it doesn't exist. This should be set to a local resource.
  * @static
  * @type String
  */
  Ext.FlashComponent.EXPRESS_INSTALL_URL = 'http:/' + '/swfobject.googlecode.com/svn/trunk/swfobject/expressInstall.swf';

Solution

  • As far as I remember it was something to do with satisfying the build tool or a syntax checker we were using at the time. It has no impact on the code.