server/bo_client/app/initializers/options.js
changeset 537 d2e6ee099125
parent 28 b0b56e0f8c7f
equal deleted inserted replaced
536:b64c8c35c67d 537:d2e6ee099125
     1 // Copied and modified from https://gist.github.com/walter/3e852e8ebc87535a3c91
     1 // Copied and modified from https://gist.github.com/walter/3e852e8ebc87535a3c91
     2 import Ember from 'ember';
     2 import Ember from 'ember';
     3 import config from 'bo-client/config/environment';
     3 import config from 'bo-client/config/environment';
     4 
     4 
     5 
     5 
     6 
       
     7 export function initialize(application) {
     6 export function initialize(application) {
     8     var OptionsReader = function OptionsReader() {
     7   var OptionsReader = function OptionsReader() {
     9     this.readOptionsKeys = function() {
     8     this.readOptionsKeys = function() {
    10       var _mapType = function(val) {
     9       var _mapType = function(val) {
    11         return "" === val ? null : "true" === val ? true : "false" === val ? false : (-1 !== val.indexOf(",") && (val = val.split(",")), val);
    10         return "" === val ? null : "true" === val ? true : "false" === val ? false : (-1 !== val.indexOf(",") && (val = val.split(",")), val);
    12       };
    11       };
    13 
    12