Index: polymer_0.5.4/bower_components/polymer/polymer.js |
diff --git a/polymer_0.5.0/bower_components/polymer/polymer.js b/polymer_0.5.4/bower_components/polymer/polymer.js |
similarity index 99% |
copy from polymer_0.5.0/bower_components/polymer/polymer.js |
copy to polymer_0.5.4/bower_components/polymer/polymer.js |
index 2d3b692ccc3bff584b2fe9aa304077232728adb8..d4140d384cc2b035d31e6999a5379dacd653db0c 100644 |
--- a/polymer_0.5.0/bower_components/polymer/polymer.js |
+++ b/polymer_0.5.4/bower_components/polymer/polymer.js |
@@ -7,11 +7,11 @@ |
* Code distributed by Google as part of the polymer project is also |
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt |
*/ |
-// @version 0.5.1 |
+// @version 0.5.4 |
window.PolymerGestures = {}; |
(function(scope) { |
- var HAS_FULL_PATH = false; |
+ var hasFullPath = false; |
// test for full event path support |
var pathTest = document.createElement('meta'); |
@@ -22,7 +22,7 @@ window.PolymerGestures = {}; |
pathTest.addEventListener('testpath', function(ev) { |
if (ev.path) { |
// if the span is in the event path, then path[0] is the real source for all events |
- HAS_FULL_PATH = ev.path[0] === s; |
+ hasFullPath = ev.path[0] === s; |
} |
ev.stopPropagation(); |
}); |
@@ -99,7 +99,7 @@ window.PolymerGestures = {}; |
return s; |
}, |
findTarget: function(inEvent) { |
- if (HAS_FULL_PATH && inEvent.path && inEvent.path.length) { |
+ if (hasFullPath && inEvent.path && inEvent.path.length) { |
return inEvent.path[0]; |
} |
var x = inEvent.clientX, y = inEvent.clientY; |
@@ -113,7 +113,7 @@ window.PolymerGestures = {}; |
}, |
findTouchAction: function(inEvent) { |
var n; |
- if (HAS_FULL_PATH && inEvent.path && inEvent.path.length) { |
+ if (hasFullPath && inEvent.path && inEvent.path.length) { |
var path = inEvent.path; |
for (var i = 0; i < path.length; i++) { |
n = path[i]; |
@@ -192,7 +192,7 @@ window.PolymerGestures = {}; |
}, |
path: function(event) { |
var p; |
- if (HAS_FULL_PATH && event.path && event.path.length) { |
+ if (hasFullPath && event.path && event.path.length) { |
p = event.path; |
} else { |
p = []; |
@@ -947,7 +947,7 @@ window.PolymerGestures = {}; |
var WHICH_TO_BUTTONS = [0, 1, 4, 2]; |
- var CURRENT_BUTTONS = 0; |
+ var currentButtons = 0; |
var FIREFOX_LINUX = /Linux.*Firefox\//i; |
@@ -1011,11 +1011,11 @@ window.PolymerGestures = {}; |
var type = inEvent.type; |
var bit = WHICH_TO_BUTTONS[inEvent.which] || 0; |
if (type === 'mousedown') { |
- CURRENT_BUTTONS |= bit; |
+ currentButtons |= bit; |
} else if (type === 'mouseup') { |
- CURRENT_BUTTONS &= ~bit; |
+ currentButtons &= ~bit; |
} |
- e.buttons = CURRENT_BUTTONS; |
+ e.buttons = currentButtons; |
} |
return e; |
}, |
@@ -1037,7 +1037,7 @@ window.PolymerGestures = {}; |
// handle case where we missed a mouseup |
if ((HAS_BUTTONS ? e.buttons : e.which) === 0) { |
if (!HAS_BUTTONS) { |
- CURRENT_BUTTONS = e.buttons = 0; |
+ currentButtons = e.buttons = 0; |
} |
dispatcher.cancel(e); |
this.cleanupMouse(e.buttons); |
@@ -3813,7 +3813,7 @@ window.PolymerGestures = {}; |
})(this); |
Polymer = { |
- version: '0.5.1' |
+ version: '0.5.4' |
}; |
// TODO(sorvell): this ensures Polymer is an object and not a function |
@@ -6353,7 +6353,8 @@ scope.isIE = isIE; |
'template': true, |
'repeat': true, |
'bind': true, |
- 'ref': true |
+ 'ref': true, |
+ 'if': true |
}; |
var semanticTemplateElements = { |
@@ -7511,7 +7512,8 @@ scope.isIE = isIE; |
if (!scope.forceJURL) { |
try { |
var u = new URL('b', 'http://a'); |
- hasWorkingUrl = u.href === 'http://a/b'; |
+ u.pathname = 'c%20d'; |
+ hasWorkingUrl = u.href === 'http://a/c%20d'; |
} catch(e) {} |
} |
@@ -8314,6 +8316,10 @@ function resolveRelativeUrl(baseUrl, url, keepAbsolute) { |
if (url && url[0] === '/') { |
return url; |
} |
+ // do not resolve '#' links, they are used for routing |
+ if (url && url[0] === '#') { |
+ return url; |
+ } |
var u = new URL(url, baseUrl); |
return keepAbsolute ? u.href : makeDocumentRelPath(u.href); |
} |