mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 06:20:26 +00:00
Fixed some jslint warnings. It caught a missing comma that would've broken the file during a minify. < whew! >
This commit is contained in:
parent
d62864b7de
commit
d32a8a6bb4
1 changed files with 4 additions and 5 deletions
|
|
@ -253,10 +253,10 @@ function handleTouchMove(event)
|
|||
{
|
||||
var t = getNativeEvent(event).touches[0];
|
||||
|
||||
var didCancel = didScroll
|
||||
var didCancel = didScroll,
|
||||
moveThreshold = $.vmouse.moveDistanceThreshold;
|
||||
didScroll = didScroll
|
||||
|| (scrollTopSupported && (startScrollX != window.pageXOffset || startScrollY != window.pageYOffset))
|
||||
|| (scrollTopSupported && (startScrollX !== window.pageXOffset || startScrollY !== window.pageYOffset))
|
||||
|| (Math.abs(t.pageX - startX) > moveThreshold || Math.abs(t.pageY - startY) > moveThreshold);
|
||||
|
||||
var flags = getVirtualBindingFlags(event.target);
|
||||
|
|
@ -332,7 +332,7 @@ function getSpecialEventObject(eventType)
|
|||
// register a global handler on the document.
|
||||
|
||||
activeDocHandlers[eventType] = (activeDocHandlers[eventType] || 0) + 1;
|
||||
if (activeDocHandlers[eventType] == 1){
|
||||
if (activeDocHandlers[eventType] === 1){
|
||||
$document.bind(realType, mouseEventCallback);
|
||||
}
|
||||
|
||||
|
|
@ -348,7 +348,7 @@ function getSpecialEventObject(eventType)
|
|||
// register our touchstart handler on the document.
|
||||
|
||||
activeDocHandlers["touchstart"] = (activeDocHandlers["touchstart"] || 0) + 1;
|
||||
if (activeDocHandlers["touchstart"] == 1) {
|
||||
if (activeDocHandlers["touchstart"] === 1) {
|
||||
$document.bind("touchstart", handleTouchStart);
|
||||
}
|
||||
}
|
||||
|
|
@ -384,7 +384,6 @@ function getSpecialEventObject(eventType)
|
|||
// If this is the last virtual mouse binding on the
|
||||
// element, remove the binding data from the element.
|
||||
|
||||
var $this = $(this);
|
||||
if (!hasVirtualBindings($this)){
|
||||
$this.removeData(dataPropertyName);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue