Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
35 lines
1.3 KiB
Markdown
35 lines
1.3 KiB
Markdown
# utils-merge
|
|
|
|
[](https://www.npmjs.com/package/utils-merge)
|
|
[](https://travis-ci.org/jaredhanson/utils-merge)
|
|
[](https://codeclimate.com/github/jaredhanson/utils-merge)
|
|
[](https://coveralls.io/r/jaredhanson/utils-merge)
|
|
[](https://david-dm.org/jaredhanson/utils-merge)
|
|
|
|
|
|
Merges the properties from a source object into a destination object.
|
|
|
|
## Install
|
|
|
|
```bash
|
|
$ npm install utils-merge
|
|
```
|
|
|
|
## Usage
|
|
|
|
```javascript
|
|
var a = { foo: 'bar' }
|
|
, b = { bar: 'baz' };
|
|
|
|
merge(a, b);
|
|
// => { foo: 'bar', bar: 'baz' }
|
|
```
|
|
|
|
## License
|
|
|
|
[The MIT License](http://opensource.org/licenses/MIT)
|
|
|
|
Copyright (c) 2013-2017 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>
|
|
|
|
<a target='_blank' rel='nofollow' href='https://app.codesponsor.io/link/vK9dyjRnnWsMzzJTQ57fRJpH/jaredhanson/utils-merge'> <img alt='Sponsor' width='888' height='68' src='https://app.codesponsor.io/embed/vK9dyjRnnWsMzzJTQ57fRJpH/jaredhanson/utils-merge.svg' /></a>
|