Skip to content

Commit

Permalink
hand-pick: #53
Browse files Browse the repository at this point in the history
  • Loading branch information
yofreke committed Sep 12, 2016
1 parent 2b3f324 commit bf1e3e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/clm.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,10 @@ var clm = {
* TODO: should be able to take img element as well
*/
this.track = function(element, box) {

var evt = document.createEvent("Event");
evt.initEvent("clmtrackrBeforeTrack", true, true);
document.dispatchEvent(evt)

var scaling, translateX, translateY, rotation;
var croppedPatches = [];
var ptch, px, py;
Expand Down

0 comments on commit bf1e3e6

Please sign in to comment.