/* Lifecycle.js 1.0.2 (c) 2011, 2012 Kevin Malakoff - http://kmalakoff.github.com/json-serialize/ License: MIT (http://www.opensource.org/licenses/mit-license.php) Note: some 'extend'-related code from Backbone.js is repeated in this file. Please see the following for details on Backbone.js and its licensing: https:github.com/documentcloud/backbone/blob/master/LICENSE */(function(){return function(e){return typeof define=="function"&&define.amd?define("lifecycle",e):e.call(this)}(function(){var e,t,n;e=this.LC=typeof exports!="undefined"?exports:{},e.VERSION="1.0.2",n=function(e){return e.constructor===Array},t=function(e,t){var n,r;for(n in t)r=t[n],e[n]=r;return e};var r=function(){},i=function(e,n,i){var s;return n&&n.hasOwnProperty("constructor")?s=n.constructor:s=function(){e.apply(this,arguments)},t(s,e),r.prototype=e.prototype,s.prototype=new r,n&&t(s.prototype,n),i&&t(s,i),s.prototype.constructor=s,s.__super__=e.prototype,s},s=function(e,t){var n=i(this,e,t);return n.extend=this.extend,n};return e.own=function(t,r){var i,s,o,u,a,f,l;if(!t||typeof t!="object")return t;r||(r={});if(n(t)){if(r.share_collection){for(u=0,f=t.length;u