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
var | |
privateMethod = Symbol('privateMethod'); | |
function DoNotExposePrivateMethod() { return this; } | |
DoNotExposePrivateMethod.prototype[privateMethod] = function() { console.log('Private phrase!'); } | |
DoNotExposePrivateMethod.prototype.publicMethod = function() { console.log('Public phrase! ' + this[privateMethod]()); } |
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
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
</head> | |
<body> | |
<script type="text/javascript" src="bower_components/underscore/underscore-min.js"></script> | |
<script type="text/javascript" src="bower_components/ring/ring.js"></script> | |
<script type="text/javascript"> |
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
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
</head> | |
<body> | |
<script type="text/javascript" src="bower_components/underscore/underscore-min.js"></script> | |
<script type="text/javascript" src="bower_components/ring/ring.js"></script> | |
<script type="text/javascript"> |
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
this.$el.fadeOut((function() { this.remove() }).bind(this)) |
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
<polymer-element name="tasks-list"> | |
<template> | |
<link rel="stylesheet" href="style.css"> | |
<template repeat="{{ tasks }}"><div>{{ title }}</div></template> | |
</template> | |
<script>Polymer({reset: function(collection){ this.tasks = collection.toJSON() }})</script> | |
</polymer-element> |
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
<body> | |
<tasks-list></tasks-list> | |
<script>window.addEventListener('polymer-ready', function() { | |
document.querySelector('tasks-list').reset(new Backbone.Collection([ | |
{title: 'Minification deployment script'}, | |
{title: 'Refine Vagrantfile'}, | |
{title: 'Fix header markup'} | |
])) | |
})</script> |
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
$('#gallery-tip').after(( | |
this.layout.settings = (new exports.SettingsFormView({app: this.app, parent: this})).render() | |
).el); |
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
$('.option').addClass('active') | |
.siblings().removeClass('active') | |
.parent().addClass('expand'); |
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
$('.touch-me') | |
.addClass('again') | |
.prop('hidden', false) | |
.html('I\'m touched!'); | |
$('.btn').addClass('active') | |
.siblings().removeClass('active'); |
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
<x-main id="properties-list" class="-module-items-list" hidden> | |
<x-captions></x-captions> | |
<x-list></x-list> | |
</x-main> |
NewerOlder