Skip to content

Commit

Permalink
Added more constants related to page breaks and to widget initializat…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
Andrei Ismail committed Aug 20, 2013
1 parent b496f16 commit f7e48e3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions core/constants.coffee
Expand Up @@ -3,9 +3,6 @@ define [], () ->
# To add project specific constants create a new constants file and extend window.Constants

Constants =
# Custom error message thrown when a 401 Unauthorized message is received from the server.
UNAUTHORIZED_EXCEPTION: '__UNAUTHORIZED__'

TODO_MOCKS: [
id: 1
name: "rob the bank",
Expand All @@ -32,5 +29,15 @@ define [], () ->
checked: true
]

# Custom error message thrown when a 401 Unauthorized message is received from the server.
UNAUTHORIZED_EXCEPTION: '__UNAUTHORIZED__'

# Data attribute name used to tell WidgetStarter to delay the start of marked widget.
DELAY_WIDGET: 'data-delayed'
INITIALIZED_WIDGET: 'data-initialized'

# Class name used for widgets between which page rendering can be broken.
PAGE_BREAK_CLASS: 'mozaic-page-break'

window.Constants = Constants
return Constants

0 comments on commit f7e48e3

Please sign in to comment.