-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
82 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
stack "stylesHelper" | ||
/Users/rabit/Documents/gitMercurial/livecode-stylesheet-system/plugin/stylesHelper_Scripts/stack_stylesHelper_.livecodescript | ||
|
||
@@ -527,15 +527,27 @@ | ||
# CHECK IF THE uStylesLibPath OF THE TARGET IS SET | ||
# AND START USING STACK stylesLib | ||
if tTargetLoaded then | ||
- put the uStylesLibPath of stack tTarget into tStylesLibOfTarget | ||
- if there is a file tStylesLibOfTarget then | ||
- if tStylesLibFile is not "inUse" then | ||
- start using stack tStylesLibOfTarget | ||
- put "inUse" into tStylesLibFile | ||
- end if | ||
+ if the uStylesLibPath of stack tTarget <> empty then | ||
|
||
- put tStylesLibOfTarget into tStylesLibPath | ||
- end if -- if there is a file tStylesLibOfTarget | ||
+ put the uStylesLibPath of stack tTarget into tStylesLibOfTarget | ||
+ if there is a file tStylesLibOfTarget then | ||
+ if tStylesLibFile is not "inUse" then | ||
+ start using stack tStylesLibOfTarget | ||
+ put "inUse" into tStylesLibFile | ||
+ end if | ||
+ | ||
+ put tStylesLibOfTarget into tStylesLibPath | ||
+ end if -- if there is a file tStylesLibOfTarget | ||
+ | ||
+ else -- if the uStylesLibPath of stack tTarget <> empty | ||
+ # THIS IS A NEW STACK, CLOSE stylesLib | ||
+ if tStylesLibFile is "inUse" then | ||
+ stop using stack "stylesLib" | ||
+ delete stack "stylesLib" | ||
+ put empty into tStylesLibFile | ||
+ end if -- if tStylesLibFile is "inUse" | ||
+ | ||
+ end if -- if the uStylesLibPath of stack tTarget <> empty | ||
end if -- if tTargetLoaded | ||
|
||
# CHECK IF stylesLib IS IN USE IN CASE THE TARGET STACK IS LOADED | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters