Permalink
Browse files

Bump up version

  • Loading branch information...
Dmitry Baranovskiy
Dmitry Baranovskiy committed Apr 2, 2015
1 parent 4bac7fa commit 5051bfe2df7af2840d71f260e613b9235a0eed1a
Showing with 100 additions and 90 deletions.
  1. +3 −3 dist/snap.svg-min.js
  2. +36 −39 dist/snap.svg.js
  3. +46 −46 doc/reference.html
  4. +13 −0 history.md
  5. +1 −1 package.json
  6. +1 −1 src/copy.js
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
-// Snap.svg 0.3.0
+// Snap.svg 0.4.0
//
-// Copyright (c) 2013 – 2014 Adobe Systems Incorporated. All rights reserved.
+// Copyright (c) 2013 – 2015 Adobe Systems Incorporated. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -794,7 +794,7 @@ var mina = (function (eve) {
window.mina = mina;
return mina;
})(typeof eve == "undefined" ? function () {} : eve);
-// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
+// Copyright (c) 2013 - 2015 Adobe Systems Incorporated. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -7271,6 +7271,7 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
}
});
});
+
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -7315,47 +7316,43 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
stopTouch = function () {
return this.originalEvent.stopPropagation();
},
- addEvent = (function () {
- if (glob.doc.addEventListener) {
- return function (obj, type, fn, element) {
- var realName = supportsTouch && touchMap[type] ? touchMap[type] : type,
- f = function (e) {
- var scrollY = getScroll("y", element),
- scrollX = getScroll("x", element);
- if (supportsTouch && touchMap[has](type)) {
- for (var i = 0, ii = e.targetTouches && e.targetTouches.length; i < ii; i++) {
- if (e.targetTouches[i].target == obj || obj.contains(e.targetTouches[i].target)) {
- var olde = e;
- e = e.targetTouches[i];
- e.originalEvent = olde;
- e.preventDefault = preventTouch;
- e.stopPropagation = stopTouch;
- break;
- }
- }
+ addEvent = function (obj, type, fn, element) {
+ var realName = supportsTouch && touchMap[type] ? touchMap[type] : type,
+ f = function (e) {
+ var scrollY = getScroll("y", element),
+ scrollX = getScroll("x", element);
+ if (supportsTouch && touchMap[has](type)) {
+ for (var i = 0, ii = e.targetTouches && e.targetTouches.length; i < ii; i++) {
+ if (e.targetTouches[i].target == obj || obj.contains(e.targetTouches[i].target)) {
+ var olde = e;
+ e = e.targetTouches[i];
+ e.originalEvent = olde;
+ e.preventDefault = preventTouch;
+ e.stopPropagation = stopTouch;
+ break;
}
- var x = e.clientX + scrollX,
- y = e.clientY + scrollY;
- return fn.call(element, e, x, y);
- };
-
- if (type !== realName) {
- obj.addEventListener(type, f, false);
+ }
}
+ var x = e.clientX + scrollX,
+ y = e.clientY + scrollY;
+ return fn.call(element, e, x, y);
+ };
- obj.addEventListener(realName, f, false);
+ if (type !== realName) {
+ obj.addEventListener(type, f, false);
+ }
- return function () {
- if (type !== realName) {
- obj.removeEventListener(type, f, false);
- }
+ obj.addEventListener(realName, f, false);
- obj.removeEventListener(realName, f, false);
- return true;
- };
- };
- }
- })(),
+ return function () {
+ if (type !== realName) {
+ obj.removeEventListener(type, f, false);
+ }
+
+ obj.removeEventListener(realName, f, false);
+ return true;
+ };
+ },
drag = [],
dragMove = function (e) {
var x = e.clientX,
Oops, something went wrong.

0 comments on commit 5051bfe

Please sign in to comment.