Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| delegateEvents: function(events) { | |
| if (!(events || (events = _.result(this, 'events')))) return this; | |
| this.undelegateEvents(); | |
| var deleg = {} | |
| for (var key in events) { | |
| var method = events[key]; | |
| if (!_.isFunction(method)) method = this[events[key]]; | |
| if (!method) continue; |
| function c(fn) { | |
| var ob = {}; | |
| return function() { | |
| var r = fn.apply(ob, arguments); | |
| ob = r ? r : ob; | |
| ob.prototype = fn.prototype; | |
| return ob; | |
| }; | |
| } |
| var Events = (function(){ | |
| var events = {}, uid = 0; | |
| return { | |
| on : function(t, fn) { | |
| events[t] = events[t] || {}; | |
| events[t][(++uid + "")] = fn; | |
| return uid; | |
| }, | |
| off : function(uid) { | |
| for (var t in events) { |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.rtincar.jsf</groupId> | |
| <artifactId>jsf2</artifactId> | |
| <packaging>war</packaging> | |
| <version>0.1</version> | |
| <name>jsf2</name> | |
| <description>A custom project using MyFaces 2.0</description> |
| $('table').bind('click', function(event) { | |
| // this == table element | |
| var $tr = $(event.target).closest('tr'); | |
| }); |
| /* | |
| copyright (c) 2008 Wouter van der Graaf, all rights reserved | |
| css3-mediaqueries.js - CSS Helper and CSS3 Media Queries Enabler | |
| author: Wouter van der Graaf <woutervandergraaf at gmail com> | |
| version: 0.9 (20091001) | |
| license: MIT | |
| website: http://woutervandergraaf.nl/css3-mediaqueries-js/ |
| YUI().use('base', function (Y) { | |
| var Generic, Specific, example, isFunction = Y.Lang.isFunction; | |
| Generic = Y.Base.create('generic', Y.Base, [], { | |
| testMethod: function () { | |
| alert('Generic#testMethod()'); | |
| } | |
| }, {}); | |
| Specific = Y.Base.create('specific', Generic, [], { |
| .element-invisible { | |
| position: absolute !important; | |
| height: 1px; | |
| width: 1px; | |
| overflow: hidden; | |
| clip: rect(1px 1px 1px 1px); | |
| } |
| <!-- | |
| Este fragmento es el html original. En la propiedad 'data-content' se almacena el contenido del popover | |
| y el atributo data-toggle="popever" es el selector para lanzar el script | |
| --> | |
| <div class="port russ" data-content="<p><strong>Russell Smith</strong></p><p>co-founder of Rainforest. I like Japanese cars and bacon. A lot.</p><div class='meta'><a href='https://github.com/ukd1'><i class='font-icon-github'></i></a><a href='https://twitter.com/massivemegalols'><i class='font-icon-twitter-bird'></i></a></div>" data-toggle="popover"> | |
| <a href="http://rsmith.co/"></a> | |
| </div> | |
| <!-- | |
| Este es el html generado. |