define(["require","exports","../../Validation","./ArcGisApiVersion"],function(e,i,r,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=(s.prototype.execute=function(e){e=r.validation.exists("layer",e.layer);return this.refresh(e),{}},s.prototype.refresh=function(e){var i;"function"==typeof e.refresh&&(t.isArcGisApiVersion3x&&"boolean"==typeof e.disableClientCaching?(i=e.disableClientCaching,e.disableClientCaching=!0,e.refresh(),e.disableClientCaching=i):e.refresh())},s.action="gcx:wf:arcgis::RefreshLayer",s.suite="gcx:wf:builtin",s);function s(){}i.RefreshLayer=n});