Skip to content

Commit

Permalink
Merge pull request #47 from dpmcmlxxvi/fix-prototypes
Browse files Browse the repository at this point in the history
Fix bad lebab transforms.
  • Loading branch information
dpmcmlxxvi committed Jun 15, 2019
2 parents d728316 + 3cb22dc commit 76d0148
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/js/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ const olexp = {
* @private
* @return {boolean} True if item is hidden otherwise false
*/
NodeManager.prototype.isHidden = (layer) => {
NodeManager.prototype.isHidden = function(layer) {
if (layer instanceof olexp.measure.Overlay) {
return true;
}
Expand Down
6 changes: 3 additions & 3 deletions src/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ const olexp = {
* @private
* @return {object} Object of ol.control objects by key name
*/
Util.prototype.getControls = () => {
Util.prototype.getControls = function() {
const controls = {
fullscreen: new ol.control.FullScreen(),
mouseposition: new ol.control.MousePosition({
Expand Down Expand Up @@ -276,7 +276,7 @@ const olexp = {
* @private
* @return {external:ol.Graticule} New graticule based on settings
*/
Util.prototype.getGraticule = (map, options) => {
Util.prototype.getGraticule = function(map, options) {
const opts = $.extend($.extend({}, options), {color: '#' + options.color});
const graticule = new ol.Graticule({
map,
Expand Down Expand Up @@ -310,7 +310,7 @@ const olexp = {
* @private
* @return {object} Object of ol.source objects
*/
Util.prototype.getTileTypes = () => {
Util.prototype.getTileTypes = function() {
// ==================================================
// Define tile types object
// --------------------------------------------------
Expand Down

0 comments on commit 76d0148

Please sign in to comment.