mjk6035 Posted August 6, 2013 Report Share Posted August 6, 2013 HiI am trying to access the Tourque client using the BtApp.js library in an aspx pageWhen I try to load the page I get the following errorError: bindAll must be passed function namesI 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 .RegardsMathew Link to comment Share on other sites More sharing options...
ianrust Posted October 15, 2013 Report Share Posted October 15, 2013 Hi Matthew, I am having an identical issue. Even when I use the template directly from this github repo: origin https://github.com/bittorrenttorque/template.git (fetch)origin https://github.com/bittorrenttorque/template.git (push) any chance you have figured it out by now? Does anyone else have an answer as to why this is happening? Ian Link to comment Share on other sites More sharing options...
ianrust Posted October 16, 2013 Report Share Posted October 16, 2013 Hey everyone, I found the solution. Apparently Underscore.js v1.5.x breaks Btapp.js. If you use a 1.4.x version it fixes the problem. Ian Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.