This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* SHA-1 cryptographic hash constructor. | |
* | |
* The properties declared here are discussed in the above algorithm document. | |
* @constructor | |
*/ | |
Sha1 = function() { | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).on 'message', | |
# Inform the parent if the size of the widget changes | |
height = 0 | |
setInterval -> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( ($, window)-> | |
# Store the actual iframe | |
frame = null | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Example.Views.Table extends Backbone.View | |
template: JST['example/table'] | |
initialize: -> | |
@collection.on 'add', @addOne | |
render: -> | |
@$el.html @template() | |
@addAll() | |
@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Example.Views.Table extends Backbone.View | |
template: JST['example/table'] | |
initialize: -> | |
_.bindAll @, 'addOne', 'addAll' | |
@collection.on 'add', @addOne | |
render: -> | |
@$el.html @template() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Example.Views.Table extends Backbone.View | |
template: JST['example/table'] | |
initialize: -> | |
_.bindAll @, 'addOne', 'addAll' | |
@collection.on 'add', @addOne | |
render: -> | |
@$el.html @template() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A small class that allows normal backbone interaction with | |
# the abomination that is the facebook api | |
# No view included due to the individuality of each solution | |
# the properties for the model are: uid, name, pic_square | |
class exports.FacebookFriendsList extends Backbone.Collection | |
#model: exports.InvitationFacebook | |
options: | |
page: 0 |
NewerOlder