Sha256: 947a082c644fb5104436031504884c35bf25309fc94ec6e820ad990855113c2e

Contents?: true

Size: 500 Bytes

Versions: 9

Compression:

Stored size: 500 Bytes

Contents

var Archangel = (function(object) {
  'use strict';

  function mergeRecursive(obj1, obj2) {
    for (var p in obj2) {
      try {
        if (obj2[p].constructor == Object) {
          obj1[p] = mergeRecursive(obj1[p], obj2[p]);
        } else {
          obj1[p] = obj2[p];
        }
      } catch(e) {
        obj1[p] = obj2[p];
      }
    }

    return obj1;
  }

  object.authTokenName = window._auth_token_name;
  object.authToken = window._auth_token;

  return object;

}(Archangel || {}));

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
archangel-0.4.0 app/assets/javascripts/archangel/object.js
archangel-0.3.0 app/assets/javascripts/archangel/object.js
archangel-0.0.8 app/assets/javascripts/archangel/object.js
archangel-0.0.7 app/assets/javascripts/archangel/object.js
archangel-0.0.6 app/assets/javascripts/archangel/object.js
archangel-0.0.5 app/assets/javascripts/archangel/object.js
archangel-0.0.4 app/assets/javascripts/archangel/object.js
archangel-0.0.3 app/assets/javascripts/archangel/object.js
archangel-0.0.2 app/assets/javascripts/archangel/object.js