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
| -- ContainerView | |
| Mango.MainContentContainerView = SC.ContainerView.extend(Mango.ContainerViewSwapperMixin, { | |
| activeViewBinding: "Mango.mainContentViewController.activeView" | |
| }); | |
| --- MIXIN | |
| Mango.ContainerViewSwapperMixin = { | |
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
| {{#collection Mango.ProjectsGridView contentBinding="Mango.projectsController"}} | |
| {{content.title}} | |
| {{/collection}} | |
| Mango.ProjectsGridView = SC.CollectionView.extend({ | |
| itemView: SC.View.extend({ | |
| mouseDown: function(evt) { | |
| window.alert('You clicked on ' + this.get('content')); |
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
| <input class="large" id="xlInput3" name="xlInput3" size="10" type="text" {{bindAttr value="projectName"}}/> |
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
| Uncaught RangeError: Maximum call stack size exceeded | |
| (anonymous function)sproutcore-metal/observer:109 | |
| invokeEventssproutcore-metal/events:100 | |
| sendEventsproutcore-metal/events:181 | |
| notifyObserverssproutcore-metal/observer:67 | |
| SC.notifyObserverssproutcore-metal/observer:169 | |
| SC.propertyDidChangesproutcore-metal/watching:507 | |
| SC.View.SC.Object.extend._elementDidChangesproutcore-views/views/view:780 | |
| SC.View.SC.Object.extend.forEachChildViewsproutcore-views/views/view:525 | |
| SC.View.SC.Object.extend._elementDidChangesproutcore-views/views/view:779 |
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
| Mango.IssuesCollectionView = SC.View.extend({ | |
| reuseQueue: [], | |
| backView: null, | |
| content: null, | |
| itemViewClass: SC.View, | |
| topRowIndex: null, |
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
| if( Meteor.isClient ){ | |
| var step = function(e, direction) { | |
| var toStep; | |
| e.shiftKey ? toStep = 10 : toStep = 1; | |
| if(direction === 'down') { | |
| toStep = toStep * -1; | |
| } |
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
| <template name="hello"> | |
| <input type="file" id="file"/> | |
| <ul class="file-list"> | |
| {{#each files}} | |
| <li> | |
| {{#if isUploaded}} | |
| <img src="{{url}}"/> | |
| {{/if}} | |
| </li> |
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 findAndRemove = function(collection, query){ | |
| var promise = new Promise(), | |
| remove = function(err, result){ | |
| var ids = []; | |
| if( err ){ | |
| promise.resolve(err); | |
| return; | |
| } |
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
| Meteor.methods({ | |
| insertIt: function (name) { | |
| var fut = new Future(); | |
| Books.insert({title: name}, function(err, result){ | |
| if(err){ | |
| fut.throw(err); | |
| } | |
| }); |
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 knex = require('knex')({ | |
| client: 'pg', | |
| debug: true, | |
| connection: { | |
| host: 'localhost', | |
| //user: 'your_database_user', | |
| //password: 'your_database_password', | |
| database: 'ecare_dump_db', | |
| charset: 'utf8' | |
| } |
OlderNewer