Skip to content

Commit

Permalink
possible fix for WP
Browse files Browse the repository at this point in the history
  • Loading branch information
jtangelder committed May 19, 2014
1 parent 906315c commit 803e5b5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
9 changes: 7 additions & 2 deletions hammer.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,13 @@ var Utils = Hammer.utils = {
* @return {Object} dest
*/
extend: function extend(dest, src, merge) {
for(var key in src) {
if(!src.hasOwnProperty(key) || (dest[key] !== undefined && merge)) {
var keys = Object.keys(src),
len = keys.length,
i, key;

for(i = 0; i < len; i++) {
key = keys[i];
if(dest[key] !== undefined && merge) {
continue;
}
dest[key] = src[key];
Expand Down
Loading

0 comments on commit 803e5b5

Please sign in to comment.