Commit b10a4387 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

bugfix open

parent dd0bfceb
......@@ -1190,7 +1190,7 @@ var STWkit;
};
CardControl.prototype.open = function (geojson) {
var self = this;
if (geojson.features[0].properties.type == self.type && (self.subtype.search(geojson.features[0].properties.subtype)) >= 0) {
if (geojson.features[0].properties.type == self.type && (self.subtype.indexOf(geojson.features[0].properties.subtype)) >= 0) {
self.clear();
for (var i in self.cardMap) {
if (self.cardMap.hasOwnProperty(i)) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment