Skip to content

Instantly share code, notes, and snippets.

@guyjacks
Created February 12, 2015 21:32
Show Gist options
  • Save guyjacks/02f5d7ef93af06114c4e to your computer and use it in GitHub Desktop.
Save guyjacks/02f5d7ef93af06114c4e to your computer and use it in GitHub Desktop.
d
$$conf: Object
$id: "profile"
$priority: null
$value: "-JhwkOAAS5HuGQhe3j-P"
__proto__: Object
$$error: function (a){c.error(a),this.$destroy(a)}
$$notify: function (){var a=this,b=this.$$conf.listeners.slice();angular.forEach(b,function(b){b[0].call(b[1],{event:"value",key:a.$id})})}
$$scopeUpdated: function (a){return this.$inst().$set(b.toJSON(a))}
$$updated: function (a){var c=b.updateRec(this,a);return b.applyDefaults(this,this.$$defaults),c}
$bindTo: function (a,b){var c=this;return c.$loaded().then(function(){return c.$$conf.binding.bindTo(a,b)})}
$destroy: function (a){var c=this;c.$isDestroyed||(c.$isDestroyed=!0,c.$$conf.binding.destroy(),b.each(c,function(a,b){delete c[b]}),c.$$conf.destroyFn(a))}
$inst: function (){return this.$$conf.inst}
$loaded: function (a,b){var c=this.$$conf.promise;return arguments.length&&(c=c.then.call(c,a,b)),c}
$remove: function (){var a=this;return b.trimKeys(this,{}),this.$value=null,a.$inst().$remove().then(function(b){return a.$$notify(),b})}
$save: function (){var a=this;return a.$inst().$set(b.toJSON(a)).then(function(b){return a.$$notify(),b})}
$watch: function (a,b){var c=this.$$conf.listeners;return c.push([a,b]),function(){var d=c.findIndex(function(c){return c[0]===a&&c[1]===b});d>-1&&c.splice(d,1)}}
forEach: function (a,c){return b.each(this,a,c)}
__proto__: Object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment