Javascript: Object function causing problems
<p>I have tag trigger working by setInterval and it alerts when it find the tag in the document. the code did not have any problem until I've got the function into an object for arrangement,</p>

<p>Live examples:</p>

<ol>
<li>here is an working example without object : <a href="http://jsfiddle.net/ae6Xc/4/" rel="nofollow">http://jsfiddle.net/ae6Xc/4/</a></li>
<li>here is example with object (with the problem) : <a href="http://jsfiddle.net/ae6Xc/10/" rel="nofollow">http://jsfiddle.net/ae6Xc/10/</a></li>
</ol>

<p>here is the "original" working code without the object:</p>

<pre><code>// looking for the special tag than save the
// element in varabile and than alert
(function(){
var win = window ,
    doc = document ,

    setInter = 'setInterval' ,
    clearInter = 'clearInterval' ,

    getByTagName = 'getElementsByTagName' ,

    KW_pluslike = 'mysite:plugin' ,

    zero = 0  ,

    element;

    // Set 'setInterval' function as trigger
    //    to target the Special tag.
var trigger = win[setInter](function(){

    // Check if such tag exist , if not repeat. When the tag
    // has founded , it set the root to the Element var.
    if(doc[getByTagName](KW_pluslike)[zero]){
        element = doc[getByTagName](KW_pluslike)[zero];
        win[clearInter](trigger);
        alert("Tag Captured");
    }
} , 1000 /5 );

})();
</code></pre>

<p>so as i said , i wanted to arrange the things up a little so i took the Trigger function and the Element variable and replaced them into an object like this :</p>

<pre><code>var pluslike = {

    element : nul ,
    trigger : win[setInter](function(){
        if(doc[getByTagName](KW_pluslike)[zero]){
            pluslike.element = doc[getByTagName](KW_pluslike)[zero];
            win[clearInter](pluslike.trigger);
            alert("Tag Captured");
        }
    } ,  1000 /5 );
}
pluslike.trigger;
</code></pre>

<p>somehow for some reason it's not working , what causes the problem? i don't know. when it started? when i used the function in object.</p>

<p>thank you in advance.</p>
