User:V111P/js/addToolbarButtons.js: Difference between revisions

Content deleted Content added
addToolbarButtons
 
mNo edit summary
Line 20:
return; // not source-editing a page
 
if (!props || typeof props == 'array'[0]) {
var arr = props || window.toolbarButtonsToAdd || [];
 
$.each(arr, function (i, val) {
if (typeof val == 'object' && !val[0])
window.addToolbarButtons(val);
});