%PDF- %PDF-
Direktori : /proc/985914/root/data/old/home/stash/stash/atlassian-stash/static/model/ |
Current File : //proc/985914/root/data/old/home/stash/stash/atlassian-stash/static/model/conflict-change-min.js |
define("model/conflict-change",["backbone-brace","util/deprecation","model/file-change-types","model/path"],function(A,D,C,B){var E=A.Model.extend({namedAttributes:{srcPath:B,path:B,type:null},initialize:function(){this.setType(E._mapChangeType(this.getType(),this.getSrcPath(),this.getPath()))}},{_mapChangeType:function(F,H,G){return(F===C.MOVE&&H&&H.isSameDirectory(G))?C.RENAME:C.changeTypeFromId(F)}});(function(F){E.prototype.toJSON=function(){var G=F.apply(this,arguments);if(this.getPath()){G.path=D.jsonAsBrace(this.getPath(),"3.1","4.0")}if(this.getSrcPath()){G.srcPath=D.jsonAsBrace(this.getSrcPath(),"3.1","4.0")}return G}})(E.prototype.toJSON);return E});