Skip to content

How to invoke jquery.leanorama.controlbar plugin's inside function? #5

@QFord

Description

@QFord

It's easy to call function between different js files which embedd in the same html web pages.
/////////////
$.fn.leanorama.extensions.push(function start() {
.....
// Bind the Left button
$controls.left.bind('touchstart mousedown', $.proxy(function() {
//alert("Bind the Left button");
this.pan_start(-0.7, 0);
show_play();
}, this)).bind('touchend mouseup', $.proxy(function() {
this.pan_stop();
}, this));

   function qfordTest(){
     alert("qfordTest");
     this.pan_start(-0.7, 0);
        show_play();
   }

....
)};
//////////
My question is how to invoke left button anonymous function.
I try:(but it doesn't work)
$.fn.leanorama.extensions.push.qfordTest();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions