Created
March 6, 2013 10:12
-
-
Save rhumlover/5098298 to your computer and use it in GitHub Desktop.
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
(function() { | |
window.streamApp.factory('Video', function() { | |
var Video; | |
Video = (function() { | |
function Video(attrs) { | |
var key, value; | |
for (key in attrs) { | |
value = attrs[key]; | |
if (key === 'created_time') { | |
value *= 1000; | |
} | |
this[key] = value; | |
} | |
} | |
return Video; | |
})(); | |
return Video; | |
}); | |
}).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment