Created
July 6, 2012 20:20
-
-
Save fredsterss/3062565 to your computer and use it in GitHub Desktop.
Backbone phail
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
checkTurk: () -> | |
# If the turk browser chars do not match assignment requirements, redirect | |
requirements = @assignmentModel.get('requirements') | |
if /\d/.test(requirements.browser) is true and requirements.browser != (@browser.browser + @browser.version) | |
new JobHoldingView({ assignmentId: @assignment, state: @state, browser: @browser }) | |
# or when the version is not required but the browser doesn't match | |
else if /\d/.test(requirements.browser) is false and requirements.browser != @browser.browser | |
new JobHoldingView({ assignmentId: @assignment, state: @state, browser: @browser }) | |
# Otherwise render the frame | |
else | |
@renderFrame() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment