FLUID-3347: handle local vs dynamic data better

Metadata

Source
FLUID-3347
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Laurel Williams
Reporter
Laurel Williams
Created
2009-11-02T15:30:25.000-0500
Updated
2009-11-25T11:17:17.000-0500
Versions
N/A
Fixed Versions
  1. 1.2
Component
  1. Infusion Builder

Description

Colin Clark says "Taking a look at the HTML file, I'm reminded that there are better strategies for switching between local testing data and the real thing, instead of commenting out code. Typically we check the window.location property to determine if the page is being hosted at a file:// URL instead of http://. In that case, just load the test data automatically."

The html file being referred to is infusion-builder/html/CustomBuild.html around line 98, where the data is loaded from a file vs dynamically assembled from the json files. I've commented out the code for each usage. Find a better way to do this.

Comments

  • Laurel Williams commented 2009-11-02T15:35:35.000-0500

    Took this one step further (with some advice from Michelle) and tested for fluid.customBuild.dependencies. If it exists then use it, otherwise, use the local data.

  • Laurel Williams commented 2009-11-25T11:17:17.000-0500

    This issue was essentially totally removed with FLUID-3349