|
232 | 232 | } |
233 | 233 | }; |
234 | 234 |
|
235 | | - // jscs:disable requireCamelCaseOrUpperCaseIdentifiers |
| 235 | + /*eslint-disable camelcase */ |
236 | 236 | Utils.is_intercepted = obsolete(Utils.isIntercepted, 'is_intercepted', 'isIntercepted'); |
237 | 237 |
|
238 | 238 | Utils.create_stylesheet = obsolete(Utils.createStylesheet, 'create_stylesheet', 'createStylesheet'); |
239 | 239 |
|
240 | 240 | Utils.remove_stylesheet = obsolete(Utils.removeStylesheet, 'remove_stylesheet', 'removeStylesheet'); |
241 | 241 |
|
242 | 242 | Utils.insert_css_rule = obsolete(Utils.insertCSSRule, 'insert_css_rule', 'insertCSSRule'); |
243 | | - // jscs:enable requireCamelCaseOrUpperCaseIdentifiers |
| 243 | + /*eslint-enable camelcase */ |
244 | 244 |
|
245 | 245 | /** |
246 | 246 | * @class GridStackDragDropPlugin |
|
653 | 653 |
|
654 | 654 | this.container = $(el); |
655 | 655 |
|
656 | | - // jscs:disable requireCamelCaseOrUpperCaseIdentifiers |
| 656 | + /*eslint-disable camelcase */ |
657 | 657 | if (typeof opts.handle_class !== 'undefined') { |
658 | 658 | opts.handleClass = opts.handle_class; |
659 | 659 | obsoleteOpts('handle_class', 'handleClass'); |
|
694 | 694 | opts.alwaysShowResizeHandle = opts.always_show_resize_handle; |
695 | 695 | obsoleteOpts('always_show_resize_handle', 'alwaysShowResizeHandle'); |
696 | 696 | } |
697 | | - // jscs:enable requireCamelCaseOrUpperCaseIdentifiers |
| 697 | + /*eslint-enable camelcase */ |
698 | 698 |
|
699 | 699 | opts.itemClass = opts.itemClass || 'grid-stack-item'; |
700 | 700 | var isNested = this.container.closest('.' + opts.itemClass).length > 0; |
|
805 | 805 | var _this = this; |
806 | 806 | this.container.children('.' + this.opts.itemClass + ':not(.' + this.opts.placeholderClass + ')') |
807 | 807 | .each(function(index, el) { |
808 | | - el = $(el); |
809 | | - elements.push({ |
810 | | - el: el, |
811 | | - // if x,y are missing (autoPosition) add them to end of list - keep their respective DOM order |
812 | | - i: (parseInt(el.attr('data-gs-x')) || 100) + |
813 | | - (parseInt(el.attr('data-gs-y')) || 100) * _this.opts.width |
| 808 | + el = $(el); |
| 809 | + elements.push({ |
| 810 | + el: el, |
| 811 | + // if x,y are missing (autoPosition) add them to end of list - keep their respective DOM order |
| 812 | + i: (parseInt(el.attr('data-gs-x')) || 100) + |
| 813 | + (parseInt(el.attr('data-gs-y')) || 100) * _this.opts.width |
| 814 | + }); |
814 | 815 | }); |
815 | | - }); |
816 | 816 | Utils.sortBy(elements, function(x) { return x.i; }).forEach(function(item) { |
817 | 817 | this._prepareElement(item.el); |
818 | 818 | }, this); |
|
1833 | 1833 | this.container.addClass('grid-stack-' + gridWidth); |
1834 | 1834 | }; |
1835 | 1835 |
|
1836 | | - // jscs:disable requireCamelCaseOrUpperCaseIdentifiers |
| 1836 | + /*eslint-disable camelcase */ |
1837 | 1837 | GridStackEngine.prototype.batch_update = obsolete(GridStackEngine.prototype.batchUpdate); |
1838 | 1838 | GridStackEngine.prototype._fix_collisions = obsolete(GridStackEngine.prototype._fixCollisions, |
1839 | 1839 | '_fix_collisions', '_fixCollisions'); |
|
1865 | 1865 | 'end_update', 'endUpdate'); |
1866 | 1866 | GridStackEngine.prototype.can_be_placed_with_respect_to_height = |
1867 | 1867 | obsolete(GridStackEngine.prototype.canBePlacedWithRespectToHeight, |
1868 | | - 'can_be_placed_with_respect_to_height', 'canBePlacedWithRespectToHeight'); |
| 1868 | + 'can_be_placed_with_respect_to_height', 'canBePlacedWithRespectToHeight'); |
1869 | 1869 | GridStack.prototype._trigger_change_event = obsolete(GridStack.prototype._triggerChangeEvent, |
1870 | 1870 | '_trigger_change_event', '_triggerChangeEvent'); |
1871 | 1871 | GridStack.prototype._init_styles = obsolete(GridStack.prototype._initStyles, |
|
1910 | 1910 | 'set_static', 'setStatic'); |
1911 | 1911 | GridStack.prototype._set_static_class = obsolete(GridStack.prototype._setStaticClass, |
1912 | 1912 | '_set_static_class', '_setStaticClass'); |
1913 | | - // jscs:enable requireCamelCaseOrUpperCaseIdentifiers |
| 1913 | + /*eslint-enable camelcase */ |
1914 | 1914 |
|
1915 | 1915 | scope.GridStackUI = GridStack; |
1916 | 1916 |
|
|
0 commit comments