way2web-clone
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -14,3 +14,3 @@ /** | ||
var version = '0.0.7'; | ||
var version = '0.0.8'; | ||
@@ -39,5 +39,5 @@ var elements = { | ||
function init() { | ||
elements = $.extend({}, elements, customElements || {}); | ||
classes = $.extend({}, classes, customClasses || {}); | ||
events = $.extend({}, events, customEvents || {}); | ||
elements = $.extend(elements, customElements); | ||
classes = $.extend(classes, customClasses); | ||
events = $.extend(events, customEvents); | ||
@@ -58,3 +58,3 @@ $scope.find(elements.toggle).on('click', cloneElement); | ||
function setElements(customElements) { | ||
elements = $.extend({}, elements, customElements || {}); | ||
elements = $.extend(elements, customElements); | ||
@@ -72,3 +72,3 @@ return this; | ||
function setClasses(customClasses) { | ||
elements = $.extend({}, elements, customClasses || {}); | ||
elements = $.extend(elements, customClasses); | ||
@@ -86,3 +86,3 @@ return this; | ||
function setEvents(customEvents) { | ||
elements = $.extend({}, elements, customEvents || {}); | ||
elements = $.extend(elements, customEvents); | ||
@@ -115,3 +115,5 @@ return this; | ||
$counter.val($count); | ||
if($counter) { | ||
$counter.val($count); | ||
} | ||
@@ -118,0 +120,0 @@ if($target) { |
{ | ||
"name": "way2web-clone", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Clone an element.", | ||
@@ -5,0 +5,0 @@ "files": [ |
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
153
8630