Skip to content

Commit

Permalink
release 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Nov 12, 2014
2 parents 1c75ff3 + da75e63 commit c654b2b
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"tools": "Polymer/tools#master",
"web-component-tester": "Polymer/web-component-tester#^1.4.2"
},
"version": "0.5.0"
"version": "0.5.1"
}
12 changes: 6 additions & 6 deletions build.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BUILD LOG
---------
Build Time: 2014-11-10T15:30:44
Build Time: 2014-11-12T14:32:18

NODEJS INFORMATION
==================
Expand All @@ -11,16 +11,16 @@ grunt-contrib-concat: 0.5.0
grunt-contrib-copy: 0.7.0
grunt-contrib-uglify: 0.6.0
grunt-string-replace: 1.0.0
web-component-tester: 1.5.1
web-component-tester: 1.6.0

REPO REVISIONS
==============
polymer-expressions: 1288fe573dc57cde304f66f0833d0644c766158c
polymer-gestures: 2b22c2b53b32eb8593fd911ec9f2980b1dabeb91
polymer: 196a3929997b2214a881374b4c68c048c59ede59
polymer-gestures: 94660a514772e182d27f79c3d8d1bb88796a2327
polymer: da75e633f39b7761494cc3139a60733c488b2215

BUILD HASHES
============
dist/polymer.js: c5627d4b6daeeb60c715f6af356ea8f87d747012
dist/polymer.min.js: aec0504f9ad997f252d7461a27aaca23214fe5dd
dist/polymer.js: 59e0d3e669a3a1d163d8337766aa63bf809bfe79
dist/polymer.min.js: a9145f911c5b9fecc0d4aa422ac658d1d462d15a
dist/layout.html: 348d358a91712ecc2f8811efa430fcd954b4590c
32 changes: 26 additions & 6 deletions polymer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* 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.0
// @version 0.5.1
window.PolymerGestures = {};

(function(scope) {
Expand Down Expand Up @@ -1370,9 +1370,15 @@ window.PolymerGestures = {};
};
// if click coordinates are close to touch coordinates, assume the click came from a touch
var wasTouched = scope.mouseEvents.lastTouches.some(closeTo);
// if the click came from touch, and the click target is not the same as the touchstart target, then the touchstart
// target was probably removed, and the click should be "busted"
if (wasTouched && (ev.target !== touchEvents.firstTarget)) {
// if the click came from touch, and the touchstart target is not in the path of the click event,
// then the touchstart target was probably removed, and the click should be "busted"
var path = scope.targetFinding.path(ev);
if (wasTouched) {
for (var i = 0; i < path.length; i++) {
if (path[i] === touchEvents.firstTarget) {
return;
}
}
ev.preventDefault();
STOP_PROP_FN.call(ev);
}
Expand Down Expand Up @@ -3785,7 +3791,7 @@ window.PolymerGestures = {};
})(this);

Polymer = {
version: '0.5.0'
version: '0.5.1'
};

// TODO(sorvell): this ensures Polymer is an object and not a function
Expand Down Expand Up @@ -8155,7 +8161,21 @@ if (!Observer.hasObjectObserve) {
var FLUSH_POLL_INTERVAL = 125;
window.addEventListener('WebComponentsReady', function() {
flush();
scope.flushPoll = setInterval(flush, FLUSH_POLL_INTERVAL);
// watch document visiblity to toggle dirty-checking
var visibilityHandler = function() {
// only flush if the page is visibile
if (document.visibilityState === 'hidden') {
if (scope.flushPoll) {
clearInterval(scope.flushPoll);
}
} else {
scope.flushPoll = setInterval(flush, FLUSH_POLL_INTERVAL);
}
};
if (typeof document.visibilityState === 'string') {
document.addEventListener('visibilitychange', visibilityHandler);
}
visibilityHandler();
});
} else {
// make flush a no-op when we have Object.observe
Expand Down
10 changes: 5 additions & 5 deletions polymer.min.js

Large diffs are not rendered by default.

0 comments on commit c654b2b

Please sign in to comment.