MCPcopy
hub / github.com/jonom/jquery-focuspoint / updateFocusPoint

Function updateFocusPoint

js/jquery.focuspoint.helpertool.js:169–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167 /*-----------------------------------------*/
168
169 function updateFocusPoint(){
170 /*-----------------------------------------*/
171 // See note in setImage() function regarding these attribute assignments.
172 //TLDR - You don't need them for this to work.
173 /*-----------------------------------------*/
174 $focusPointContainers.attr({
175 'data-focus-x': focusPointAttr.x,
176 'data-focus-y': focusPointAttr.y
177 });
178 /*-----------------------------------------*/
179 // These you DO need :)
180 /*-----------------------------------------*/
181 $focusPointContainers.data('focusX', focusPointAttr.x);
182 $focusPointContainers.data('focusY', focusPointAttr.y);
183 $focusPointContainers.adjustFocus();
184 };
185 });
186}(jQuery));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected