Sha256: c4feeda64eed00b9bb272ca64b193625f4bb3f09871f9a672fb3a3b1366a304c

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 KB

Contents

//>>built
define("dojox/analytics/plugins/mouseClick",["dojo/_base/lang","../_base","dojo/_base/config","dojo/_base/window","dojo/on"],function(_1,_2,_3,_4,on){
return (_2.plugins.mouseClick=new (function(){
this.addData=_1.hitch(_2,"addData","mouseClick");
this.targetProps=_3["targetProps"]||["id","className","nodeName","localName","href","spellcheck","lang"];
this.textContentMaxChars=_3["textContentMaxChars"]||50;
this.onClick=function(e){
this.addData(this.trimEvent(e));
};
on(_4.doc,"click",_1.hitch(this,"onClick"));
this.trimEvent=function(e){
var t={};
for(var i in e){
switch(i){
case "target":
case "originalTarget":
case "explicitOriginalTarget":
var _5=this.targetProps;
t[i]={};
for(var j=0;j<_5.length;j++){
if(e[i][_5[j]]){
if(_5[j]=="text"||_5[j]=="textContent"){
if((e[i]["localName"]!="HTML")&&(e[i]["localName"]!="BODY")){
t[i][_5[j]]=e[i][_5[j]].substr(0,this.textContentMaxChars);
}
}else{
t[i][_5[j]]=e[i][_5[j]];
}
}
}
break;
case "clientX":
case "clientY":
case "pageX":
case "pageY":
case "screenX":
case "screenY":
t[i]=e[i];
break;
}
}
return t;
};
})());
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dojox-rails-0.14.0 vendor/assets/javascripts/dojox/analytics/plugins/mouseClick.js
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/analytics/plugins/mouseClick.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/analytics/plugins/mouseClick.js
dojox-rails-0.11.0 vendor/assets/javascripts/analytics/plugins/mouseClick.js