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
"use strict"; | |
import React, {Component} from 'react'; | |
import calcContentHeight from './dom-textarea-measure'; | |
class AutogrowingTextarea extends Component { | |
constructor(props) { | |
this.props = props; | |
this.state = {}; | |
this.textareaProps = sanitizeChildProps(props); |
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
library cookie; | |
import 'dart:html'; | |
/* | |
* dart document.cookie lib | |
* | |
* ported from | |
* http://www.quirksmode.org/js/cookies.html | |
* |
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
ArstistPageView = Backbone.View.extend({ | |
initialize: function(){ | |
// If model has changed, update view accordingly: | |
this.model.bind("all", this.render, this); | |
}, | |
render: function() { | |
// fetch the new rendered template from server | |
templateRequest = $.ajax({ url: "path/to/rendered/artist/template" }) | |
templateRequest.done(function(data) { | |
// render the template into dom |
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
Data = require('data') | |
schema = | |
'/type/project': | |
'type': 'type' | |
'name': 'Project' | |
'properties': | |
'name': | |
'name': 'Name', 'unique': true, 'type': 'string', 'required': true | |
'tags': |