Created
February 27, 2009 05:11
-
-
Save visionik/71299 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 _parseTime(time){ // convert float second to integer milliseconds | |
return Math.max(0, parseInt(parseFloat(time)*1000)); | |
} | |
function _handleCallBack(cb, ev){ | |
try { | |
if(ev){ | |
cb(ev); | |
} | |
else{ | |
cb(); | |
} | |
} catch (e){ | |
log(e.message); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment