Skip to content

Commit

Permalink
release 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Dec 11, 2014
2 parents c654b2b + a74e9f3 commit 2a9ca53
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 25 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ For more detailed info goto [http://polymer-project.org/](http://polymer-project

Polymer is a new type of library for the web, designed to leverage the existing browser infrastructure to provide the encapsulation and extendability currently only available in JS libraries.

Polymer is based on a set of future technologies, including [Shadow DOM](https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html), [Custom Elements](https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html) and Model Driven Views. Currently these technologies are implemented as polyfills or shims, but as browsers adopt these features natively, the platform code that drives Polymer evacipates, leaving only the value-adds.
Polymer is based on a set of future technologies, including [Shadow DOM](http://w3c.github.io/webcomponents/spec/shadow/), [Custom Elements](http://w3c.github.io/webcomponents/spec/custom/) and Model Driven Views. Currently these technologies are implemented as polyfills or shims, but as browsers adopt these features natively, the platform code that drives Polymer evacipates, leaving only the value-adds.

## Tools & Testing

For running tests or building minified files, consult the [tooling information](http://polymer-project.org/resources/tooling-strategy.html).
For running tests or building minified files, consult the [tooling information](https://www.polymer-project.org/resources/tooling-strategy.html).

## Releases

Expand Down
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.1"
"version": "0.5.2"
}
13 changes: 6 additions & 7 deletions build.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BUILD LOG
---------
Build Time: 2014-11-12T14:32:18
Build Time: 2014-12-11T12:46:30

NODEJS INFORMATION
==================
Expand All @@ -11,16 +11,15 @@ 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.6.0

REPO REVISIONS
==============
polymer-expressions: 1288fe573dc57cde304f66f0833d0644c766158c
polymer-gestures: 94660a514772e182d27f79c3d8d1bb88796a2327
polymer: da75e633f39b7761494cc3139a60733c488b2215
polymer-expressions: 197c3a0150e7a13374cfcc72e7066113723a623d
polymer-gestures: 17a6304916521be39409af292e8adf899bae0ce7
polymer: a74e9f36526361dccb6df91be439ff9c3e043f41

BUILD HASHES
============
dist/polymer.js: 59e0d3e669a3a1d163d8337766aa63bf809bfe79
dist/polymer.min.js: a9145f911c5b9fecc0d4aa422ac658d1d462d15a
dist/polymer.js: b9ad4c86af79c748cf4ea722f6d56671079fadf7
dist/polymer.min.js: 2f2021ba9682b0bb702ee7fb68fb6fbfd288eac2
dist/layout.html: 348d358a91712ecc2f8811efa430fcd954b4590c
44 changes: 33 additions & 11 deletions polymer.js
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ window.PolymerGestures = {};
};
})(window.PolymerGestures);

(function (scope) {
(function(scope) {
var dispatcher = scope.dispatcher;
var pointermap = dispatcher.pointermap;
// radius around touchend that swallows mouse events
Expand All @@ -948,10 +948,22 @@ window.PolymerGestures = {};
var WHICH_TO_BUTTONS = [0, 1, 4, 2];

var CURRENT_BUTTONS = 0;
var HAS_BUTTONS = false;
try {
HAS_BUTTONS = new MouseEvent('test', {buttons: 1}).buttons === 1;
} catch (e) {}

var FIREFOX_LINUX = /Linux.*Firefox\//i;

var HAS_BUTTONS = (function() {
// firefox on linux returns spec-incorrect values for mouseup.buttons
// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.buttons#See_also
// https://codereview.chromium.org/727593003/#msg16
if (FIREFOX_LINUX.test(navigator.userAgent)) {
return false;
}
try {
return new MouseEvent('test', {buttons: 1}).buttons === 1;
} catch (e) {
return false;
}
})();

// handler block for native mouse events
var mouseEvents = {
Expand Down Expand Up @@ -1273,7 +1285,7 @@ window.PolymerGestures = {};
d.forEach(function(p) {
this.cancel(p);
pointermap.delete(p.pointerId);
});
}, this);
}
},
touchstart: function(inEvent) {
Expand Down Expand Up @@ -2047,7 +2059,9 @@ window.PolymerGestures = {};
'cancel'
],
exposes: [
'pinchstart',
'pinch',
'pinchend',
'rotate'
],
defaultActions: {
Expand All @@ -2065,11 +2079,19 @@ window.PolymerGestures = {};
diameter: points.diameter,
target: scope.targetFinding.LCA(points.a.target, points.b.target)
};

this.firePinch('pinchstart', points.diameter, points);
}
},
up: function(inEvent) {
var p = pointermap.get(inEvent.pointerId);
var num = pointermap.pointers();
if (p) {
if (num === 2) {
// fire 'pinchend' before deleting pointer
var points = this.calcChord();
this.firePinch('pinchend', points.diameter, points);
}
pointermap.delete(inEvent.pointerId);
}
},
Expand All @@ -2084,9 +2106,9 @@ window.PolymerGestures = {};
cancel: function(inEvent) {
this.up(inEvent);
},
firePinch: function(diameter, points) {
firePinch: function(type, diameter, points) {
var zoom = diameter / this.reference.diameter;
var e = eventFactory.makeGestureEvent('pinch', {
var e = eventFactory.makeGestureEvent(type, {
bubbles: true,
cancelable: true,
scale: zoom,
Expand All @@ -2113,7 +2135,7 @@ window.PolymerGestures = {};
var diameter = points.diameter;
var angle = this.calcAngle(points);
if (diameter != this.reference.diameter) {
this.firePinch(diameter, points);
this.firePinch('pinch', diameter, points);
}
if (angle != this.reference.angle) {
this.fireRotate(angle, points);
Expand Down Expand Up @@ -3258,7 +3280,7 @@ window.PolymerGestures = {};
},

setValue: function(model, newValue) {
if (this.path.length == 1);
if (this.path.length == 1)
model = findScope(model, this.path[0]);

return this.path.setValueFrom(model, newValue);
Expand Down Expand Up @@ -8132,7 +8154,7 @@ head.insertBefore(style, head.firstChild);
/**
* Force any pending data changes to be observed before
* the next task. Data changes are processed asynchronously but are guaranteed
* to be processed, for example, before paintin. This method should rarely be
* to be processed, for example, before painting. This method should rarely be
* needed. It does nothing when Object.observe is available;
* when Object.observe is not available, Polymer automatically flushes data
* changes approximately every 1/10 second.
Expand Down
8 changes: 4 additions & 4 deletions polymer.min.js

Large diffs are not rendered by default.

0 comments on commit 2a9ca53

Please sign in to comment.