remove unneeded new keyword
This commit is contained in:
parent
16b3962b66
commit
fdf3f6ce30
1 changed files with 2 additions and 2 deletions
|
@ -431,7 +431,7 @@ describe('menu module', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('MenuItem with custom properties in constructor', function () {
|
describe.only('MenuItem with custom properties in constructor', function () {
|
||||||
it('preserves the custom properties', function () {
|
it('preserves the custom properties', function () {
|
||||||
var template = [{
|
var template = [{
|
||||||
label: 'menu 1',
|
label: 'menu 1',
|
||||||
|
@ -439,7 +439,7 @@ describe('MenuItem with custom properties in constructor', function () {
|
||||||
submenu: []
|
submenu: []
|
||||||
}]
|
}]
|
||||||
|
|
||||||
var menu = new Menu.buildFromTemplate(template)
|
var menu = Menu.buildFromTemplate(template)
|
||||||
menu.items[0].submenu.append(new MenuItem({
|
menu.items[0].submenu.append(new MenuItem({
|
||||||
label: 'item 1',
|
label: 'item 1',
|
||||||
customProp: 'bar'
|
customProp: 'bar'
|
||||||
|
|
Loading…
Reference in a new issue