Make renderIntent private and add a getter
This commit is contained in:
@@ -894,7 +894,7 @@ describe('ol.expr.lib', function() {
|
||||
describe('renderIntent()', function() {
|
||||
|
||||
var feature = new ol.Feature();
|
||||
feature.renderIntent = 'foo';
|
||||
feature.setRenderIntent('foo');
|
||||
|
||||
var isFoo = parse('renderIntent("foo")');
|
||||
var isBar = parse('renderIntent("bar")');
|
||||
|
||||
@@ -47,7 +47,7 @@ describe('ol.interaction.Select', function() {
|
||||
describe('#select', function() {
|
||||
|
||||
var selectedFeaturesFilter = function(feature) {
|
||||
return feature.renderIntent == 'selected';
|
||||
return feature.getRenderIntent() == 'selected';
|
||||
};
|
||||
|
||||
it('toggles selection of features', function() {
|
||||
|
||||
Reference in New Issue
Block a user