<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>@Josh - In the ticket I proposed a different solution, which was quite lame. The Solution which Otto provided about loading another js file, which makes the old parameters work is a much more efficient solution. Unfortunately, I don't know how to implement it, right now. I will be digging deeper into jQuery/JavaScript in the coming month. If the problem isn't solved until then, I will surely provide the above mentioned efficient solution to it.<br><br><div><hr id="stopSpelling">From: jpollock412@gmail.com<br>Date: Sat, 23 Nov 2013 16:59:05 -0500<br>To: theme-reviewers@lists.wordpress.org<br>Subject: Re: [theme-reviewers] Upgrading Masonry In Core<br><br><div dir="ltr">Otto- I understand what you are describing theoretically speaking but I know slightly more than nothing about javascript and wouldn't know how to accomplish this.<div><br></div><div>Rohit- You know how to do this, right?:)</div>
</div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Sat, Nov 23, 2013 at 4:31 PM, Otto <span dir="ltr"><<a href="mailto:otto@ottodestruct.com" target="_blank">otto@ottodestruct.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><div class="ecxgmail_extra"><div class="ecxgmail_quote"><div class="ecxim">On Sat, Nov 23, 2013 at 3:23 PM, Josh Pollock <span dir="ltr"><<a href="mailto:jpollock412@gmail.com" target="_blank">jpollock412@gmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">Thanks for the feedback Otto, very valuable advice.<div><br></div><div>Do you or anyone else have an example of what a backwards compatibility wrapper look like that I can reference? Never had to do this before, but it is going to be needed since there are a lot of changes in Masonry parameters.</div>
</div></blockquote><div><br></div><div><br></div></div><div>Absolutely no idea. Again, not a Javascript guru. :)</div><div><br></div><div>I can tell you what it should look like from the perspective of somebody who is trying to *use* that masonry code. From the perspective of the theme developer, I should be able to use either Masonry 2 style parameters or the Masonry 3 style parameters and have the code just work. I should not have to make any notice of what version of the code is actually running.</div>
<div><br></div><div>The point of backwards compatibility is for old-code to continue to work, without modification. Obviously, you want people to write code using the new way, but the old calls should still work as intended.</div>
<div><br></div><div>Don't know how possible this is for this specific case. I know that javascript libraries can be modified by other javascript libraries... and that's about all I know. Presumably, if you could load masonry.js and then load in something else which modifies it to make the old parameters work too, or maybe which translates calls with the old parameters to the new ones, or something like that, then that's probably the way to go.</div>
<span class="ecxHOEnZb"><font color="#888888">
<div><br></div><div>-Otto</div><div><br></div><div><br></div></font></span></div></div></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________
theme-reviewers mailing list
theme-reviewers@lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers</div> </div></body>
</html>