You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
481 B
18 lines
481 B
exports.isLeftClick = function(event) { |
|
return event.button === 0; |
|
}; |
|
|
|
exports.isModifiedEvent = function(event) { |
|
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); |
|
}; |
|
|
|
exports.withoutProperties = function(object, properties) { |
|
var property, result; |
|
result = {}; |
|
for (property in object) { |
|
if (object.hasOwnProperty(property) && properties.indexOf(property) == -1) { |
|
result[property] = object[property]; |
|
} |
|
} |
|
return result; |
|
};
|
|
|