Search the web
Sign In
New User? Sign Up
jsosa · JavaScript OSA-Talk
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Proposed Changes to the JavaScript Library   Message List  
Reply | Forward Message #501 of 529 |
Re: Proposed Changes to the JavaScript Library

Whoops.

>MacOS.search = function( path ) {

[snip]

> if ( c == "." ) {
> while ( path.slice( 0, 2 ) == "../" ) {
> me = me.container;
> path = path.slice( 3 );
> }
> return me;
> }

Replace the above with:

if ( c == "." ) {
while ( path.slice( 0, 3 ) == "../" ) {
me = me.container;
path = path.slice( 3 );
}
return new MacOS.FileSpec( me.path + "/" + path );
}


-- Arthur




Fri Mar 10, 2006 7:56 pm

admiralnovia
Offline Offline
Send Email Send Email

Forward
Message #501 of 529 |
Expand Messages Author Sort by Date

// Proposed changes and additions to the JavaScript Library file // embedded in the JavaScript OSA component. // I have yet to create a non-trivial jsosa...
Arthur Knapp
admiralnovia
Offline Send Email
Mar 10, 2006
7:03 pm

Whoops. ... [snip] ... Replace the above with: if ( c == "." ) { while ( path.slice( 0, 3 ) == "../" ) { me = me.container; path = path.slice( 3 ); } return...
Arthur Knapp
admiralnovia
Offline Send Email
Mar 10, 2006
7:56 pm

... I've also placed a copy of the corrected script here: http://homepage.mac.com/admiralnovia/FileSharing1.html -- Arthur...
Arthur Knapp
admiralnovia
Offline Send Email
Mar 10, 2006
8:02 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help