blob: 22d30add88ba12eb05be50dcf7f6486cf0a005ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
function generateMouseEvent(type) {
var event = document.createEvent('MouseEvent');
event.initEvent(type, true, true);
return event;
}
// essentially the same as $.extend
function extend(){
var result = {},
$__arguments = [].slice.call(arguments);
$__arguments.forEach(function(obj) {
for (var prop in obj) {
if (obj.hasOwnProperty(prop)) {
result[prop] = obj[prop];
}
}
});
return result;
}
|