equal
deleted
inserted
replaced
2371 } |
2371 } |
2372 // If running in async mode, registered plug-ins are run |
2372 // If running in async mode, registered plug-ins are run |
2373 // before callback is called so we call plug-in manually |
2373 // before callback is called so we call plug-in manually |
2374 if (callbacks && (plugin.async !== false)) { |
2374 if (callbacks && (plugin.async !== false)) { |
2375 for (index=0; index < callbacks.length; index++) { |
2375 for (index=0; index < callbacks.length; index++) { |
2376 callbacks[index](element); |
2376 ams.getFunctionByName(callbacks[index])(element); |
2377 } |
2377 } |
2378 } |
2378 } |
2379 }, { |
2379 }, { |
2380 async: plugin.async === undefined ? true : plugin.async |
2380 async: plugin.async === undefined ? true : plugin.async |
2381 }); |
2381 }); |