Last active
April 21, 2016 11:14
-
-
Save petersirka/c359f6df3cbba52e57eabd3735402892 to your computer and use it in GitHub Desktop.
Pomocník
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
COMPONENT('comments', function() { | |
var self = this; | |
self.readonly(); | |
self.rebuild = function() { | |
AJAX('GET .....', function(response, err) { | |
if (err) | |
return; | |
// akože urobíme nejakú operáciu s Array | |
response.reverse(); | |
// renderujeme | |
self.setter(response); | |
}); | |
}; | |
self.setter = function(value) { | |
if (!value) | |
return; | |
self.html('RENDER'); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment