MooTools Injection Parameters - Please Explain

MooTools element.inject(otherElement, param) appears to be backward.

Can someone please explain the logic to me? Or is it just back-assward?
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name="generator" content="PSPad editor,">
  <title>MooTools DOM Manipulation Example</title>
  <style type="text/css">
  	#A1 { border:2px solid red; }
  	#A2 { border:2px solid green; }
  	#A3 { border:2px solid blue; }
  <script type="text/javascript" src="lib/mootools.js"></script>
  <script type="text/javascript">
  function inject_1(){

  	var A1 = $('A1');
  	var A2 = $('A2');
  	var A3 = $('A3');
  	A1.inject(A2, 'after');
	<h1>MooTools DOM Injection / Manipulation Test</h1>
	<h2>Sample 1: Simple DOM Elements</h2>
	<div id="A1">A1 - First DIV</div>
	<div id="A2">A2 - Second DIV</div>
	<div id="A3">A3 - Third DIV</div>
	<button onclick="inject_1()">Inject A2 before A1</button>

Open in new window

LVL 14
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tomaugerdotcomAuthor Commented:
Ah, got it.

The inject method is called on the object we're injecting, not the object we're injecting INTO.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.