Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Small fixes to get working with CS7
  • Loading branch information
davestewart committed Sep 17, 2012
1 parent 4fa04f4 commit 23d014e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/jsfl/libraries/file/Folder.jsfl
Expand Up @@ -135,7 +135,7 @@
{
URI.throwURILengthError(uri);
}
if(FLfile.getAttributes(uri).indexOf('D') > -1)
if(FLfile.exists(uri + '/'))
{
uri += '/';
}
Expand Down
4 changes: 2 additions & 2 deletions core/jsfl/libraries/objects/XML.jsfl
Expand Up @@ -37,7 +37,7 @@
* @type {RegExp} type, attr, operator, value
* @ignore
*/
var rxFilter = /([@#\.])([\w_-:]+)([\^\$!=<>]+)?([^"'\(\)]+)?/;
var rxFilter = /([@#\.])([-\w_:]+)([\^\$!=<>]+)?([^"'\(\)]+)?/;

/**
*
Expand All @@ -51,7 +51,7 @@
* @type {RegExp} i.e. @name, @some-name, @some_name
* @ignore
*/
var rxAttribute = /^@[\w-_]+$/;
var rxAttribute = /^@[-\w_]+$/;


// --------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion core/jsfl/libraries/utils/Utils.jsfl
Expand Up @@ -1637,7 +1637,7 @@

// create URI
itemURI = folderURI + name;
isFolder = String(FLfile.getAttributes(itemURI)).indexOf('D') !== -1;
isFolder = FLfile.exists(folderURI + name + '/');
if(isFolder)
{
itemURI += '/';
Expand Down
2 changes: 1 addition & 1 deletion core/jsfl/proxies.jsfl
Expand Up @@ -208,7 +208,7 @@
for each(var item in items)
{
var uri = folderURI + item;
if(FLfile.getAttributes(uri).indexOf('D') > -1)
if(FLfile.exists(uri + '/'))
{
if( ! filesOnly )
{
Expand Down

0 comments on commit 23d014e

Please sign in to comment.