Comparing version 1.10.7 to 1.10.8
@@ -83,3 +83,3 @@ define(["../has", "./config", "require", "module"], function(has, config, require, module){ | ||
var rev = "$Rev: 00f5aea $".match(/[0-9a-f]{7,}/); | ||
var rev = "$Rev: f8ee3a9 $".match(/[0-9a-f]{7,}/); | ||
dojo.version = { | ||
@@ -97,3 +97,3 @@ // summary: | ||
major: 1, minor: 10, patch: 7, flag: "", | ||
major: 1, minor: 10, patch: 8, flag: "", | ||
revision: rev ? rev[0] : NaN, | ||
@@ -100,0 +100,0 @@ toString: function(){ |
@@ -30,13 +30,12 @@ _Do you have a contribution? We welcome contributions, but please ensure that you read the following information | ||
We require all contributions, to be covered under the Dojo Foundation's [Contributor License Agreement][cla]. This can | ||
We require all contributions, to be covered under the JS Foundation's [Contributor License Agreement][cla]. This can | ||
be done electronically and essentially ensures that you are making it clear that your contributions are your | ||
contributions, you have the legal right to contribute and you are transferring the copyright of your works to the Dojo | ||
contributions, you have the legal right to contribute and you are transferring the copyright of your works to the Dojo | ||
Foundation. | ||
If you are an unfamiliar contributor to the committer assessing your pull request, it is best to make it clear how | ||
you are covered by a CLA in the notes of the pull request. The committer will [verify][claCheck] your status. | ||
you are covered by a CLA in the notes of the pull request. A bot will verify your status. | ||
If your GitHub user id you are submitting your pull request from differs from the Dojo Community ID or e-mail address | ||
which you have signed your CLA under, you should specifically note what you have your CLA filed under (and for CCLA | ||
that you are listed under your company's authorised contributors). | ||
If your GitHub user id you are submitting your pull request from differs from the e-mail address | ||
which you have signed your CLA under, you should specifically note what you have your CLA filed under. | ||
@@ -198,3 +197,3 @@ # Submitting a Pull Request | ||
reflect this. The committer reviewing your pull request is likely to request the appropriate changes in the test | ||
cases. Dojo utilises its own test harness called [D.O.H.][] and is available as part of the [dojo/util][] repository. | ||
cases. Dojo utilises [Intern][] for all new tests, and has legacy support for its previous generation test harness called [D.O.H.][] and is available as part of the [dojo/util][] repository. All new tests should be authored using Intern. | ||
@@ -220,6 +219,6 @@ It is expected that you will have tested your changes against the existing test cases and appropriate platforms prior to | ||
[dojo-contrib]: http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors | ||
[cla]: http://dojofoundation.org/about/cla | ||
[claCheck]: http://dojofoundation.org/about/claCheck | ||
[cla]: https://js.foundation/CLA/ | ||
[Creating a Pull Request]: https://help.github.com/articles/creating-a-pull-request | ||
[Fork a Repo]: https://help.github.com/articles/fork-a-repo | ||
[Intern]: http://theintern.io/ | ||
[styleguide]: http://dojotoolkit.org/reference-guide/developer/styleguide.html | ||
@@ -226,0 +225,0 @@ [DojoDoc]: http://dojotoolkit.org/reference-guide/developer/markup.html |
define([ | ||
"../_base/array", "../_base/declare", "../_base/lang", | ||
"../dom", "../dom-class", "../Evented", "../on", "../topic", "../touch", "./common", "./Mover", "../_base/window" | ||
], function(array, declare, lang, dom, domClass, Evented, on, topic, touch, dnd, Mover, win){ | ||
"../_base/array", "../_base/declare", "../_base/lang", "../dom", "../dom-class", "../Evented", | ||
"../has", "../on", "../topic", "../touch", "./common", "./Mover", "../_base/window" | ||
], function(array, declare, lang, dom, domClass, Evented, has, on, topic, touch, dnd, Mover, win){ | ||
@@ -9,3 +9,23 @@ // module: | ||
var touchActionPropertyName; | ||
var setTouchAction = function () {}; | ||
function setTouchActionPropertyName() { | ||
if ("touchAction" in document.body.style) { | ||
touchActionPropertyName = "touchAction"; | ||
} | ||
else if ("msTouchAction" in document.body.style) { | ||
touchActionPropertyName = "msTouchAction"; | ||
} | ||
setTouchAction = function setTouchAction(/* Node */ node, /* string */ action) { | ||
node.style[touchActionPropertyName] = action; | ||
} | ||
setTouchAction(arguments[0], arguments[1]); | ||
} | ||
if (has("touch-action")) { | ||
// Ensure that the logic to determine "touchActionPropertyName" runs | ||
setTouchAction = setTouchActionPropertyName; | ||
} | ||
var Moveable = declare("dojo.dnd.Moveable", [Evented], { | ||
@@ -26,2 +46,3 @@ // summary: | ||
this.node = dom.byId(node); | ||
setTouchAction(this.node, "none"); | ||
if(!params){ params = {}; } | ||
@@ -51,2 +72,3 @@ this.handle = params.handle ? dom.byId(params.handle) : null; | ||
array.forEach(this.events, function(handle){ handle.remove(); }); | ||
setTouchAction(this.node, ""); | ||
this.events = this.node = this.handle = null; | ||
@@ -53,0 +75,0 @@ }, |
@@ -119,2 +119,6 @@ define(["require", "module"], function(require, module){ | ||
has.add("MSPointer", window.navigator.msPointerEnabled); | ||
// The "pointermove"" event is only continuously emitted in a touch environment if | ||
// the target node's "touch-action"" CSS property is set to "none" | ||
// https://www.w3.org/TR/pointerevents/#the-touch-action-css-property | ||
has.add("touch-action", has("touch") && has("pointer-events")); | ||
@@ -121,0 +125,0 @@ // I don't know if any of these tests are really correct, just a rough guess |
12
on.js
@@ -582,7 +582,9 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./sniff"], function(aspect, dojo, has){ | ||
} | ||
//use event.changedTouches[0].pageX|pageY|screenX|screenY|clientX|clientY|target | ||
var firstChangeTouch = event.changedTouches[0]; | ||
for(var i in firstChangeTouch){ // use for-in, we don't need to have dependency on dojo/_base/lang here | ||
delete event[i]; // delete it first to make it mutable | ||
event[i] = firstChangeTouch[i]; | ||
if (window.TouchEvent && originalEvent instanceof TouchEvent) { | ||
//use event.changedTouches[0].pageX|pageY|screenX|screenY|clientX|clientY|target | ||
var firstChangeTouch = event.changedTouches[0]; | ||
for(var i in firstChangeTouch){ // use for-in, we don't need to have dependency on dojo/_base/lang here | ||
delete event[i]; // delete it first to make it mutable | ||
event[i] = firstChangeTouch[i]; | ||
} | ||
} | ||
@@ -589,0 +591,0 @@ } |
{ | ||
"name": "dojo", | ||
"version": "1.10.7", | ||
"version":"1.10.8", | ||
"directories": { | ||
@@ -5,0 +5,0 @@ "lib": "." |
@@ -1,31 +0,76 @@ | ||
# dojo | ||
dojo | ||
==== | ||
**dojo** is the foundation package of the Dojo Toolkit. Sometimes referred to as the “core”, it contains the most | ||
generally applicable sub-packages and modules. The dojo package covers a wide range of functionality like AJAX, DOM | ||
manipulation, class-type programming, events, promises, data stores, drag-and-drop and internationalization libraries. | ||
**dojo** is the foundation package of version 1.x of the Dojo Toolkit. Sometimes | ||
referred to as the “core”, it contains the most generally applicable sub-packages | ||
and modules. The dojo package covers a wide range of functionality like Ajax, DOM | ||
manipulation, class-type programming, events, promises, data stores, | ||
drag-and-drop and internationalization libraries. | ||
## Installing | ||
Installing | ||
---------- | ||
Installation instructions are available at [dojotoolkit.org/download][download]. | ||
Installation instructions are available at | ||
[dojotoolkit.org/download](<http://dojotoolkit.org/download/>). | ||
## Getting Started | ||
Getting Started | ||
--------------- | ||
If you are starting out with Dojo, the following resources are available to you: | ||
* [Tutorials][] | ||
* [Reference Guide][] | ||
* [API Documentation][] | ||
* [Community Forum][] | ||
- [Tutorials](<http://dojotoolkit.org/documentation/>) | ||
## License and Copyright | ||
- [Reference Guide](<http://dojotoolkit.org/reference-guide/>) | ||
The Dojo Toolkit (including this package) is dual licensed under BSD 3-Clause and AFL. For more information on the | ||
license please see the [License Information][]. The Dojo Toolkit is Copyright (c) 2005-2016, The Dojo Foundation. All | ||
rights reserved. | ||
- [API Documentation](<http://dojotoolkit.org/api/>) | ||
[download]: http://dojotoolkit.org/download/ | ||
[Tutorials]: http://dojotoolkit.org/documentation/ | ||
[Reference Guide]: http://dojotoolkit.org/reference-guide/ | ||
[API Documentation]: http://dojotoolkit.org/api/ | ||
[Community Forum]: http://dojotoolkit.org/community/ | ||
[License Information]: http://dojotoolkit.org/license | ||
- [Community Forum](<http://dojotoolkit.org/community/>) | ||
What to Use Dojo For and When to Use It | ||
--------------------------------------- | ||
The following is a brief sampling of some of the areas where Dojo may prove to | ||
be the right tool for your next project: | ||
- For keeping your code fast and maintainable, Dojo offers an asynchronous | ||
module definition (AMD) loader -- encapsulating pieces of code into useful | ||
units, loading small JavaScript files only when they are needed, and loading | ||
files separately even when they are dependent on one another. | ||
- When you want to easily extend existing classes, share functionality among a | ||
number of classes, and maximize code reuse, Dojo provides class-like | ||
inheritance and “mixins.” | ||
- For creating advanced and customizable user interfaces out of refined, | ||
efficient, and modular pieces, Dojo’s Dijit framework offers several dozen | ||
enterprise-ready widgets -- including buttons, textboxes, form widgets with | ||
built-in validation, layout elements, and much more -- along with themes to | ||
lend them a consistent look. All of this is available for mobile | ||
environments as well. | ||
- For working with advanced vector graphics, Dojo’s GFX API can render | ||
graphics in a wide variety of formats, with support for seamless | ||
manipulation (skewing, rotating, resizing), gradients, responding to mouse | ||
events, and more. | ||
- The `dojox/charting` library supports powerful data visualization and | ||
dynamic charting, including a variety of 2D plots and animated charting | ||
elements. | ||
- When you need feature-rich, lightweight, and mobile-friendly grids/tables, | ||
Dojo offers the `dgrid` widget, along with customizable default themes and | ||
accompanying features such as in-cell editing, row/cell selection, column | ||
resizing/reordering, keyboard handling, pagination, and more. | ||
- Dojo is the officially supported framework for the ArcGIS API for | ||
JavaScript, one of the most widely used enterprise-grade APIs for web | ||
mapping and spatial analysis -- learning to use Dojo will open doors to | ||
creating richer web mapping applications using that API. | ||
License and Copyright | ||
--------------------- | ||
The Dojo Toolkit (including this package) is dual licensed under BSD 3-Clause | ||
and AFL. For more information on the license please see the [License | ||
Information](<http://dojotoolkit.org/license>). The Dojo Toolkit is Copyright | ||
(c) 2005-2017, JS Foundation. All rights reserved. |
@@ -42,3 +42,3 @@ define(["doh/main", "dojo/_base/array", "dojo/_base/lang", "dojo/_base/kernel" | ||
'lang.getObject("_getObjectTest", false)'); | ||
t.assertEqual({}, lang.getObject("_getObjectTest.bar", true), 'lang.getObject("_getObjectTest.bar", true)'); // do create | ||
t.assertEqual("object", typeof lang.getObject("_getObjectTest.bar", true), 'lang.getObject("_getObjectTest.bar", true)'); // do create | ||
@@ -50,3 +50,4 @@ // strangely, parser does this | ||
t.assertEqual(test, lang.getObject("", false, test)); | ||
t.assertEqual(kernel.global, lang.getObject("")); | ||
t.assertEqual(null, lang.getObject("", false, null)); | ||
t.assertEqual(undefined, lang.getObject("")); | ||
}, | ||
@@ -337,2 +338,2 @@ | ||
); | ||
}); | ||
}); |
@@ -45,17 +45,5 @@ define(["doh/main", "require", "dojo/_base/lang", "dojo/store/JsonRest"], function(doh, require, lang, JsonRest){ | ||
// and with an equals sign | ||
store.target = store.target.slice(0, -1); | ||
t.is(store.target + "=foo", store._getTarget("foo")); | ||
store.target = store.target.slice(0, -1) + '='; | ||
t.is(store.target + "foo", store._getTarget("foo")); | ||
}, | ||
function testQueryIterative(t){ | ||
var d = new doh.Deferred(); | ||
var i = 0; | ||
store.query("treeTestRoot").forEach(function(object){ | ||
i++; | ||
console.log(i); | ||
t.is(object.name, "node" + i); | ||
}).then(function(){ | ||
d.callback(true); | ||
}); | ||
return d; | ||
}, | ||
function testHeaders(t){ | ||
@@ -62,0 +50,0 @@ var d = new doh.Deferred(), |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4366256
121152
77