This file contains 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 Creature = (function () { | |
// constructor | |
function Creature (name) { | |
// public properties | |
this.name = name; | |
this.extremities; | |
this.isBird; | |
} | |
// private properties | |
var bones; |
This file contains 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
/** | |
* | |
*/ | |
def([ | |
], function () { | |
return Backbone.Model.extend({ | |
/** | |
********* OBJECT PARAMETER'S VARIABLES ********* | |
*/ |
This file contains 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
appendFilenameColumn : function(anonDatasetDescriptor, id, index) { | |
var datasetDescriptor = anonDatasetDescriptor.copy(id); | |
var colArray = Ext.Array.clone(datasetDescriptor.get('columns')); | |
if (index != null) { | |
colArray = Ext.Array.insert(colArray, index, [{ name : 'filename', title : 'Filename', type : Insight.util.Util.wrapWithDataTooltip }]); | |
} else { | |
colArray = Ext.Array.merge( colArray, [{ name : 'filename', title : 'Filename', type : Insight.util.Util.wrapWithDataTooltip }] ); | |
} | |
datasetDescriptor.set('columns', colArray ); |
This file contains 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
//Insight.view.PagingGrid | |
storeListener : function(store) { | |
var toolbar = this.down('pagingtoolbar'); | |
if ( toolbar ) { | |
var newVisible = (store.getTotalCount() > store.pageSize); | |
var oldVisible = toolbar.isVisible(); | |
toolbar.setVisible(newVisible); | |
store.currentPage = (Math.ceil(store.getTotalCount()/store.pageSize) >= store.currentPage) ? store.currentPage : Math.ceil(store.getTotalCount()/store.pageSize); | |
if (oldVisible != newVisible) { |