Changeset 26588
- Timestamp:
- 12/12/08 22:43:12 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/gmperator.js
r25306 r26588 352 352 function(args,special){ 353 353 var commander = GM_BrowserUI.getCommander(content); 354 var commandName = args[0]; 354 355 for (let i=0,l=commander.menuItems.length; i<l; i++){ 355 356 let menuItem = commander.menuItems[i]; 356 if (menuItem.getAttribute('label') == args.string){357 if (menuItem.getAttribute('label') == commandName){ 357 358 menuItem._commandFunc(); 358 359 return; 359 360 } 360 361 } 361 liberator.echoerr( args.string+ ' is not defined userscript command.');362 liberator.echoerr(commandName + ' is not defined userscript command.'); 362 363 }, 363 364 { … … 370 371 return this.test(item[0]); 371 372 },exp); 372 } 373 }, 374 argCount: "1" 373 375 } 374 376 ); //}}}
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)