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 UploaderView = Ember.ContainerView.extend({ | |
tagName: 'button', | |
classNames: ['btn', 'btn-white', 'has-icon', 'uploader'], | |
didInsertElement: function() { | |
this.pushObject(this.uploadView.create()); | |
}, | |
render: function(buffer) { | |
buffer.push('<i class="icon-download"></i> Upload'); |
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 store = (function($) { | |
if(typeof(Storage) === 'undefined') { | |
throw new Error('This browser does not support localStorage') | |
} | |
var _$ = $({}); | |
this.get = function(key) { | |
return localStorage.hasOwnProperty(key) ? localStorage[key] : false; | |
}; |
NewerOlder