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
function JSONstringify( obj ) { | |
var val, results = []; | |
results.push('{') | |
for(var key in obj) { | |
val = obj[key]; | |
results.push('"'+ key + '": ') | |
if (typeof(val) === 'number') { | |
results.push(val) | |
} else |
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
_.mixin({ | |
'extends': function(child, base, props) { | |
child.prototype = _.create(base.prototype, _.assign({ | |
'_super': base.prototype, | |
'constructor': child | |
}, props)); | |
return child; | |
} | |
}); |
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
render: function (el) { | |
var self = this; | |
self.$el.empty(); | |
self.$el.html(PageTemplate); | |
if (!window.quotainjector) { | |
window.quotainjector = window.angular.bootstrap(document, ['QuotaReportView']) | |
window.quotainjector.invoke(function($rootScope) { | |
console.log('invoke self.periodYears',self.periodYears) |
NewerOlder