Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| $('.caseone, .casetwo, .casethree').click(function() { | |
| this.className = { | |
| casethree : 'caseone', caseone: 'casetwo', casetwo: 'casethree' | |
| }[this.className]; | |
| }); |
| if(typeof APP == "undefined"){ | |
| var APP = { | |
| Models: {}, | |
| Collections: {}, | |
| Views: {} | |
| }; | |
| } | |
| APP.Models.Twitter = {}; | |
| APP.Models.Twitter.Tweet = Backbone.Model.extend({ |
| /** | |
| * Extend Backbone.View to have a "close" function. | |
| * Unbind all triggers and events. | |
| * Save an array of all bound events to unbind | |
| * Define onClose on views to clean up model/collection listeners | |
| */ | |
| define(function(require) { | |
| var Backbone = require('use!libs/backbone/backbone'), | |
| _ = require('use!underscore'); |