Skip to content

Commit

Permalink
Item9472: fix js errors in case foswikilib is not loaded yet
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@8497 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Aug 15, 2010
1 parent 3748738 commit 222cc54
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
7 changes: 3 additions & 4 deletions core/pub/System/JavascriptFiles/foswikiArray_src.js
Expand Up @@ -20,14 +20,13 @@ As per the GPL, removal of this notice is prohibited.
*/

/**
* Array utility functions.
*/

var foswiki;
if (foswiki == undefined)
foswiki = {};

/**
* Array utility functions.
*/
foswiki.Array = {

/**
Expand Down
4 changes: 4 additions & 0 deletions core/pub/System/JavascriptFiles/foswikiCSS_src.js
Expand Up @@ -22,6 +22,10 @@ Author: Arthur Clemens
*/

var foswiki;
if (foswiki == undefined)
foswiki = {};

/**
* Functions for manipulating class attributes.
* Requires: foswikilib
Expand Down
5 changes: 4 additions & 1 deletion core/pub/System/JavascriptFiles/foswikiForm_src.js
Expand Up @@ -23,6 +23,10 @@ As per the GPL, removal of this notice is prohibited.
*/

var foswiki;
if (foswiki == undefined)
foswiki = {};

/**
* Support for JS control of fields in an HTML form.
* Based on code written by:
Expand All @@ -33,7 +37,6 @@ As per the GPL, removal of this notice is prohibited.
*
* Requires foswikilib, foswikiCSS.js and foswikiString.js
*/

foswiki.Form = {

KEYVALUEPAIR_DELIMITER : ";",
Expand Down
4 changes: 4 additions & 0 deletions core/pub/System/JavascriptFiles/foswikiPref_src.js
Expand Up @@ -32,6 +32,10 @@ Based on code written by Bill Dortch, hIdaho Design <bdortch@hidaho.com>
* Requires: foswikilib
*/

var foswiki;
if (foswiki == undefined)
foswiki = {};

foswiki.Pref = {

FOSWIKI_PREF_COOKIE_NAME:"FOSWIKIPREF",
Expand Down
4 changes: 4 additions & 0 deletions core/pub/System/JavascriptFiles/foswikiString_src.js
Expand Up @@ -25,6 +25,10 @@ As per the GPL, removal of this notice is prohibited.
* Requires: foswikilib
*/

var foswiki;
if (foswiki == undefined)
foswiki = {};

foswiki.String = {

/**
Expand Down

0 comments on commit 222cc54

Please sign in to comment.