Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get vs Value #31

Open
justechn opened this issue Aug 13, 2015 · 0 comments
Open

Get vs Value #31

justechn opened this issue Aug 13, 2015 · 0 comments

Comments

@justechn
Copy link

Sorry if this is answered somewhere in the docs, but I didn't see it.

What is the difference between the get: and value: ?

I pulled this from your own code
https://github.com/stuplum/astrolabe/blob/master/lib/astrolabe/page.js

debug: { value: function() { this.context.debugger(); } },
title:      { get: function() { return this.context.getTitle(); } },

https://github.com/stuplum/astrolabe/blob/master/lib/astrolabe/base.js

by:           { value: protractor.By },
driver:       { get: function() { return browser; } },
exception:    { value: function(name) { return new exceptions.Exception(name); } },
findElement:  { value: function(by) { return this.context.findElement(by); } },
findElements: { value: function(by) { return this.context.findElements(by); } },

I don't see any consistent difference between their usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant