Skip to content
This repository was archived by the owner on Jul 24, 2018. It is now read-only.

Conversation

@PVince81
Copy link
Contributor

@PVince81 PVince81 commented Jul 9, 2014

@VicDeo this fix will be required soon as I'm fixing FileActions stuff.

We should avoid static access to attributes of fileActions in the future.

@VicDeo
Copy link
Contributor

VicDeo commented Jul 9, 2014

@PVince81 In general I'd be happy if it would be possible just use getCurrentFileId method or something similar instead of access to the property.

@PVince81
Copy link
Contributor Author

PVince81 commented Jul 9, 2014

You mean have some kind of FileInfo object on which you can retrieve properties ?
This is on my TODO list for later... I'd love to have that.

@PVince81
Copy link
Contributor Author

PVince81 commented Jul 9, 2014

Actually the problem is that there shouldn't be a stateful "current file". The file is only current within the function call. Having static attributes on the FileActions like before (which I want to get rid of in the future) has the risk of containing outdated values.

Anyway, do you need me to make any changes to this PR ?

@VicDeo
Copy link
Contributor

VicDeo commented Jul 9, 2014

@PVince81 No, it looks good
And tested)

VicDeo added a commit that referenced this pull request Jul 9, 2014
@VicDeo VicDeo merged commit 71e4f3b into master Jul 9, 2014
@VicDeo VicDeo deleted the viewer-nostaticfileactionaccess branch July 9, 2014 18:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants