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
| // Yellow - Decorator for method | |
| function isFruit(name){ | |
| return ['banana', 'apple'].indexOf(name) !== -1; | |
| } | |
| function not(fn){ | |
| return function(){ | |
| return !fn.apply(null, arguments); | |
| }; | |
| } |
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
| // Yellow - Decorator for method | |
| function isFruit(name){ | |
| return ['banana', 'apple'].indexOf(name) !== -1; | |
| } | |
| function not(fn){ | |
| return function(){ | |
| return !fn.apply(null, arguments); | |
| }; | |
| } |
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
| // Yellow - Decorator for method | |
| function isFruit(name){ | |
| return ['banana', 'apple'].indexOf(name) !== -1; | |
| } | |
| function not(fn){ | |
| return function(){ | |
| return !fn.apply(null, arguments); | |
| }; | |
| } |
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
| // Yellow - Decorator for method | |
| function isFruit(name){ | |
| return ['banana', 'apple'].indexOf(name) !== -1; | |
| } | |
| function not(fn){ | |
| return function(){ | |
| return !fn.apply(null, arguments); | |
| }; | |
| } |
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
| // Yellow - Decorator for method | |
| function isFruit(name){ | |
| return ['banana', 'apple'].indexOf(name) !== -1; | |
| } | |
| function not(fn){ | |
| return function(){ | |
| return !fn.apply(null, arguments); | |
| }; | |
| } |
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 Item = React.createClass({ | |
| propTypes: { | |
| document: React.PropTypes.object.required | |
| }, | |
| _handleDrag: function(position){ | |
| this.setState({ | |
| dragging: true, | |
| dragPosition: position | |
| }); |
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 detectNewOpenDocument = function () { | |
| return Promise.delay(50).bind(this) | |
| .then(function () { | |
| return documentActions._getDocumentByRef(documentLib.referenceBy.current); | |
| }) | |
| .then(function (doc) { | |
| var currentDocumentID = this.flux.store("application").getCurrentDocumentID(); | |
| if (doc.documentID === currentDocumentID) { | |
| throw "Retry"; | |
| } |
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
| batchPlay: ([ | |
| { | |
| "name": "select", | |
| "descriptor": { | |
| "null": { | |
| "_ref": [ | |
| { | |
| "_ref": "layer", | |
| "_id": 7 | |
| }, |
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
| { | |
| "name": "transform", | |
| "descriptor": { | |
| "null": { | |
| "_ref": [ | |
| { | |
| "_ref": "layer", | |
| "_id": 19 | |
| }, | |
| { |
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
| console.time("documentID"); | |
| _spaces.ps.descriptor.get({ | |
| "_multiGetRef": [ | |
| { | |
| "_propertyList": [ | |
| "documentID" | |
| ] | |
| }, | |
| { | |
| "_range": "document", |