From b2b0bfb108898a36d8bbd99ad90ad6cfde570ad2 Mon Sep 17 00:00:00 2001 From: RubaXa Date: Sat, 4 Jan 2014 17:04:49 +0400 Subject: [PATCH] * JSDoc --- Sortable.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Sortable.js b/Sortable.js index 3baf27c..db29049 100644 --- a/Sortable.js +++ b/Sortable.js @@ -74,10 +74,11 @@ options.onRemove = _bind(this, options.onRemove || noop); + // Export group name el[expando] = options.group; - // Bind all prevate methods + // Bind all private methods for( var fn in this ){ if( fn.charAt(0) === '_' ){ this[fn] = _bind(this, this[fn]); @@ -109,7 +110,7 @@ }, - _onTapStart: function (evt/**TouchEvent*/){ + _onTapStart: function (evt/**Event|TouchEvent*/){ var touch = evt.touches && evt.touches[0] , target = (touch || evt).target @@ -195,7 +196,7 @@ }, - _onTouchMove: function (evt){ + _onTouchMove: function (evt/**TouchEvent*/){ if( tapEvt ){ var touch = evt.touches[0] @@ -209,7 +210,7 @@ }, - _onDragStart: function (evt/**Event*/, isTouch){ + _onDragStart: function (evt/**Event*/, isTouch/**Boolean*/){ var target = evt.target , dataTransfer = evt.dataTransfer @@ -261,7 +262,7 @@ }, - _onDragOver: function (evt){ + _onDragOver: function (evt/**Event*/){ if( !_silent && (activeGroup === this.options.group) && (evt.rootEl === void 0 || evt.rootEl === this.el) ){ var el = this.el