added back polyfills for older browsers
This commit is contained in:
@@ -17,9 +17,9 @@ const $ = jQuery;
|
||||
* an existing group element or, with three parameters, will create a new layer group element.
|
||||
*
|
||||
* @example
|
||||
* const l1 = new Layer('name', group); // Use the existing group for this layer.
|
||||
* const l1 = new Layer('name', group); // Use the existing group for this layer.
|
||||
* const l2 = new Layer('name', group, svgElem); // Create a new group and add it to the DOM after group.
|
||||
* const l3 = new Layer('name', null, svgElem); // Create a new group and add it to the DOM as the last layer.
|
||||
* const l3 = new Layer('name', null, svgElem); // Create a new group and add it to the DOM as the last layer.
|
||||
* @memberof module:layer
|
||||
*/
|
||||
class Layer {
|
||||
|
||||
@@ -105,11 +105,11 @@ svgCanvas.setSvgString('string');
|
||||
|
||||
// Or if a callback is needed:
|
||||
svgCanvas.setSvgString('string')(function (data, error) {
|
||||
if (error) {
|
||||
if (error) {
|
||||
// There was an error
|
||||
} else {
|
||||
} else {
|
||||
// Handle data
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Everything is done with the same API as the real svg-edit,
|
||||
|
||||
@@ -65,8 +65,8 @@
|
||||
};
|
||||
|
||||
$(function () {
|
||||
// Initialise INPUT element(s) as SpinButtons: (passing options if desired)
|
||||
$('#myInputElement').SpinButton(myOptions);
|
||||
// Initialise INPUT element(s) as SpinButtons: (passing options if desired)
|
||||
$('#myInputElement').SpinButton(myOptions);
|
||||
});
|
||||
*/
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user