Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 12 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | define([ |
||
2 | 'jquery' |
||
3 | ], function ($) { |
||
4 | 'use strict'; |
||
5 | |||
6 | return function (config, element) { |
||
7 | var addToCardForm = $(element).parent().parent().find('form'); |
||
8 | var buyNowBtn = $(element).html(); |
||
9 | addToCardForm.append(buyNowBtn); |
||
10 | $(element).html(''); |
||
11 | } |
||
12 | }); |
||
13 |