Jump to content

Getting error bindAll must be passed function names


mjk6035

Recommended Posts

Hi

I am trying to access the Tourque client using the BtApp.js library in an aspx page

When I try to load the page I get the following error

Error: bindAll must be passed function names

I am including the following scripts

<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>

<script src="http://cdnjs.cloudflare.com/ajax/libs/json2/20110223/json2.js"></script>

<script src="http://underscorejs.org/underscore.js"></script>

<script src="http://backbonejs.org/backbone.js"></script>

<script src="https://raw.github.com/andris9/jStorage/master/jstorage.js"></script>

<script src="https://raw.github.com/bittorrenttorque/backbrace/master/backbrace.js"></script>

<script src="https://raw.github.com/bittorrenttorque/btapp/master/pairing.btapp.js"></script>

<script src="https://raw.github.com/bittorrenttorque/btapp/master/plugin.btapp.js"></script>

<script src="https://raw.github.com/bittorrenttorque/btapp/master/client.btapp.js"></script>

<script src="https://raw.github.com/bittorrenttorque/btapp/master/btapp.js"></script>

<script language="javascript">

var btapp = new Btapp;

btapp.connect();

var url = 'http://vodo.net/media/torrents/Deadside.Pilot.2012.720p.x264-VODO.torrent';

// Wait for the add functionality to bubble up from the torrent client

// Once available, use it to add the torrent

btapp.live('add', function (add) {

add.torrent(url);

});

// Backbrace passes the matching values in reverse order to the callback

// In this case we'll be called for each download_url in the properties of any torrent in the torrent list

btapp.live('torrent * properties download_url', function (download_url, properties) {

// Only interested in the torrent that has a download_url that matches the location we provided

if (download_url == url) {

var name = properties.get('name');

// We found our torrent!

// Now lets listen for progress changes

properties.on('change:progress', function (progress) {

// We have an update!

alert('Download progress for ' + name + ': ' + progress);

});

}

});

</script>

What could be causing the error .

Regards

Mathew

Link to comment
Share on other sites

  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...